Patchwork [1/6] Fix compilation warning due to missing header for sigaction

login
register
mail settings
Submitter Stefan Hajnoczi
Date June 8, 2011, 8:24 a.m.
Message ID <1307521488-6066-2-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/99379/
State New
Headers show

Comments

Stefan Hajnoczi - June 8, 2011, 8:24 a.m.
From: Alexandre Raymond <cerbere@gmail.com>

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>
---
 qemu-common.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/qemu-common.h b/qemu-common.h
index b851b20..39fabc9 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"