[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/8] bswap: fix compiler warning
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 1/8] bswap: fix compiler warning |
Date: |
Fri, 19 Apr 2013 13:33:54 +0200 |
From: Alexey Kardashevskiy <address@hidden>
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 <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
include/qemu/bswap.h | 1 +
1 file changed, 1 insertion(+)
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
--
1.8.1.4
- [Qemu-devel] [PULL 0/8] Trivial patches for 13 to 19 April 2013, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 1/8] bswap: fix compiler warning,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 2/8] virtio.h: drop unused function prototypes, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 4/8] w64: Fix compiler warnings (wrong format specifier), Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 3/8] Remove unneeded type casts, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 6/8] block/ssh: Add missing gcc format attributes, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 5/8] linux-user: change do_semop to return target errno when unsuccessful, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 8/8] m25p80: Remove bogus include of devices.h, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 7/8] ssh: Remove unnecessary use of strlen function., Stefan Hajnoczi, 2013/04/19