Am 07.01.2013 18:29, schrieb Peter Maydell:
Explicitly include string.h to avoid warnings under MacOS X/clang
about implicit declarations of strerror() and strlen().
Signed-off-by: Peter Maydell<peter.mayd...@linaro.org>
---
I assume under Linux these are implicitly dragged in via one of the
other headers.
qga/channel-posix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/qga/channel-posix.c b/qga/channel-posix.c
index d4fd628..ca9e4aa 100644
--- a/qga/channel-posix.c
+++ b/qga/channel-posix.c
@@ -4,6 +4,7 @@
#include<unistd.h>
#include<fcntl.h>
#include<stdlib.h>
+#include<string.h>
#include "qemu/osdep.h"
#include "qemu/sockets.h"
#include "qga/channel.h"
Better: include qemu-common.h first and remove all
three standard includes.
- Stefan