[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qga/channel-posix.c: Explicitly include string.h
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH] qga/channel-posix.c: Explicitly include string.h |
Date: |
Mon, 7 Jan 2013 17:29:55 +0000 |
Explicitly include string.h to avoid warnings under MacOS X/clang
about implicit declarations of strerror() and strlen().
Signed-off-by: Peter Maydell <address@hidden>
---
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"
--
1.7.11.4