提交 ea44910e 编写于 作者: A Alexey Kardashevskiy 提交者: Stefan Hajnoczi

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: NAlexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
Reviewed-by: NAndreas Färber <afaerber@suse.de>
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
上级 09dada40
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "config-host.h" #include "config-host.h"
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>
#include <string.h>
#include "fpu/softfloat.h" #include "fpu/softfloat.h"
#ifdef CONFIG_MACHINE_BSWAP_H #ifdef CONFIG_MACHINE_BSWAP_H
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册