]> git.proxmox.com Git - qemu.git/commit - include/qemu/bswap.h
bswap: fix compiler warning
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 15 Apr 2013 01:47:56 +0000 (11:47 +1000)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Apr 2013 09:28:22 +0000 (11:28 +0200)
commitea44910eefc3661af6b80442858102a4f8cd8034
tree6811113e9bd87a00b994b64fece18d32478a4db6
parent09dada400328d75daf79e3eca1e48e024fec148d
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>
include/qemu/bswap.h