From ea44910eefc3661af6b80442858102a4f8cd8034 Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Mon, 15 Apr 2013 11:47:56 +1000 Subject: bswap: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/qemu/bswap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/qemu') 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 #include +#include #include "fpu/softfloat.h" #ifdef CONFIG_MACHINE_BSWAP_H -- cgit v1.1