diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2013-04-15 11:47:56 +1000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-19 11:28:22 +0200 |
commit | ea44910eefc3661af6b80442858102a4f8cd8034 (patch) | |
tree | 6811113e9bd87a00b994b64fece18d32478a4db6 | |
parent | 09dada400328d75daf79e3eca1e48e024fec148d (diff) | |
download | hqemu-ea44910eefc3661af6b80442858102a4f8cd8034.zip hqemu-ea44910eefc3661af6b80442858102a4f8cd8034.tar.gz |
bswap: fix compiler warning
The bswap functions use memcpy but the bswap.h header itself does not seem to
include it in some configuration such as cross compiling for powerpc64
on x86_64 machine.
The patch explicitly includes string.h.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | include/qemu/bswap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index d3af35d..14a5f65 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -4,6 +4,7 @@ #include "config-host.h" #include <inttypes.h> #include <limits.h> +#include <string.h> #include "fpu/softfloat.h" #ifdef CONFIG_MACHINE_BSWAP_H |