aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Raymond <cerbere@gmail.com>2011-06-01 22:21:30 -0400
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-06-08 09:04:29 +0100
commit86f69a92b163dac5ee230c8a109c3e8f37f13d38 (patch)
tree061efd2e63d6dd6f895901c75a275efc5cb32592
parenta90d4690074526f54ad0851fce19fa6783f06803 (diff)
Fix compilation warning due to missing header for sigaction
Fix the following warning by including signal.h directly in qemu-common.h ----8<---- iohandler.c: In function ‘qemu_init_child_watch’: iohandler.c:172: warning: implicit declaration of function ‘sigaction’ iohandler.c:172: warning: nested extern declaration of ‘sigaction’ ----8<---- Signed-off-by: Alexandre Raymond <cerbere@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r--qemu-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index b851b20c51..39fabc9e0f 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -39,6 +39,7 @@ typedef struct Monitor Monitor;
#include <sys/stat.h>
#include <sys/time.h>
#include <assert.h>
+#include <signal.h>
#ifdef _WIN32
#include "qemu-os-win32.h"