From: Alexey Kardashevskiy Date: Mon, 15 Apr 2013 01:47:56 +0000 (+1000) Subject: bswap: fix compiler warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ea44910eefc3661af6b80442858102a4f8cd8034;p=qemu.git 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 Reviewed-by: Stefan Hajnoczi Reviewed-by: David Gibson Reviewed-by: Andreas Färber Signed-off-by: Stefan Hajnoczi --- diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index d3af35d1d9..14a5f657ce 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -4,6 +4,7 @@ #include "config-host.h" #include #include +#include #include "fpu/softfloat.h" #ifdef CONFIG_MACHINE_BSWAP_H