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>
This commit is contained in:
Alexandre Raymond 2011-06-01 22:21:30 -04:00 committed by Stefan Hajnoczi
parent a90d469007
commit 86f69a92b1

View File

@ -39,6 +39,7 @@ typedef struct Monitor Monitor;
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <assert.h> #include <assert.h>
#include <signal.h>
#ifdef _WIN32 #ifdef _WIN32
#include "qemu-os-win32.h" #include "qemu-os-win32.h"