qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix compilation warning due to missing header for sigaction
@ 2011-06-02  2:21 Alexandre Raymond
  2011-06-02 10:13 ` Andreas Färber
  2011-06-02 22:44 ` Stefan Hajnoczi
  0 siblings, 2 replies; 6+ messages in thread
From: Alexandre Raymond @ 2011-06-02  2:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Alexandre Raymond

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

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"
-- 
1.7.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-02 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02  2:21 [Qemu-devel] [PATCH] Fix compilation warning due to missing header for sigaction Alexandre Raymond
2011-06-02 10:13 ` Andreas Färber
2011-06-02 13:27   ` Alexandre Raymond
2011-06-02 22:44 ` Stefan Hajnoczi
2011-06-02 22:55   ` Alexandre Raymond
2011-06-02 23:04     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).