Fix compilation warning due to missing header for sigaction (followup)
authorAlexandre Raymond <cerbere@gmail.com>
Fri, 3 Jun 2011 03:26:49 +0000 (23:26 -0400)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 8 Jun 2011 08:04:29 +0000 (09:04 +0100)
This patch removes all references to signal.h when qemu-common.h is included
as they become redundant.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
19 files changed:
audio/audio_pt_int.c
audio/sdlaudio.c
block/raw-posix.c
bsd-user/syscall.c
darwin-user/signal.c
exec.c
linux-user/signal.c
net/tap.c
posix-aio-compat.c
qemu-char.c
qemu-progress.c
savevm.c
target-i386/helper.c
target-ppc/helper.c
target-sparc/helper.c
ui/curses.c
ui/sdl.c
usb-bsd.c
usb-linux.c

index 908c569a92031398d0e8150239c18fd47982f108..9a9c306a9cd52d8de6ef1e9f7ee9548d7dfa0b65 100644 (file)
@@ -6,8 +6,6 @@
 #include "audio_int.h"
 #include "audio_pt_int.h"
 
-#include <signal.h>
-
 static void GCC_FMT_ATTR(3, 4) logerr (struct audio_pt *pt, int err,
                                        const char *fmt, ...)
 {
index a847aa90f7fd1999e5afcf009f5c371446061526..d24daa5ead5eb0b813fd368a90031468777f5c18 100644 (file)
@@ -32,7 +32,6 @@
 #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
 #include <pthread.h>
 #endif
-#include <signal.h>
 #endif
 
 #define AUDIO_CAP "sdl"
index 6b724705994d0600c471fb4c897c8a3c16d05910..9a72a1755128f653ec3649c2c142e2c622dc5846 100644 (file)
@@ -43,7 +43,6 @@
 
 #ifdef __sun__
 #define _POSIX_PTHREAD_SEMANTICS 1
-#include <signal.h>
 #include <sys/dkio.h>
 #endif
 #ifdef __linux__
@@ -53,7 +52,6 @@
 #include <linux/fd.h>
 #endif
 #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
-#include <signal.h>
 #include <sys/disk.h>
 #include <sys/cdio.h>
 #endif
index eb1cdf21cacdcc35a30fbdc5084380235e52b78e..d4d039a2f6748406425016fee83ca10f5f44c9a9 100644 (file)
@@ -31,7 +31,6 @@
 #include <sys/syscall.h>
 #include <sys/param.h>
 #include <sys/sysctl.h>
-#include <signal.h>
 #include <utime.h>
 
 #include "qemu.h"
index 48620184eec2a609e17d4eb144d8439aca68b4c2..e2adca3918aca91f3654bb90016e0a91b76fc406 100644 (file)
@@ -21,7 +21,6 @@
 #include <string.h>
 #include <stdarg.h>
 #include <unistd.h>
-#include <signal.h>
 #include <errno.h>
 #include <sys/ucontext.h>
 
@@ -32,8 +31,6 @@
 #undef uc_link
 #endif
 
-#include <signal.h>
-
 #include "qemu.h"
 #include "qemu-common.h"
 
diff --git a/exec.c b/exec.c
index 6f339efb1009c20fe4e221b58302b2c3e3385701..bffc201f97122af47c41ccc9952c54e07492b436 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -36,7 +36,6 @@
 #include "qemu-timer.h"
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
-#include <signal.h>
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/param.h>
 #if __FreeBSD_version >= 700104
index c7a375fe0e092b5aeb6cdf9ed52e8f156c9e316e..11b25be7b8414e9f7a628a4cc2209c044a92a1de 100644 (file)
@@ -21,7 +21,6 @@
 #include <string.h>
 #include <stdarg.h>
 #include <unistd.h>
-#include <signal.h>
 #include <errno.h>
 #include <assert.h>
 #include <sys/ucontext.h>
index b8cd25267cfd5b7518e7214fb6feb7ae26bbeb18..1f26dc9992a016e263af0d4f69c147f274c3acbf 100644 (file)
--- a/net/tap.c
+++ b/net/tap.c
@@ -27,7 +27,6 @@
 
 #include "config-host.h"
 
-#include <signal.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
index f3cc8687ce1abcd50c37bbdce682a1244a9e94cf..c4116e30f2e2391762b5528cd46a179d53843ba0 100644 (file)
@@ -17,7 +17,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <time.h>
-#include <signal.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
index 5e04a20b8c4dd04ff14be2679439f51d237873d9..fb13b28454cd1cda24f52b0ed9f0ebb635e07b13 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <unistd.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/time.h>
index 8ebe8efa99f410561973f91ee74f7235171dad28..5f1b8dfb97a80166598f18b1a1a1cf4390b5a62c 100644 (file)
@@ -26,7 +26,6 @@
 #include "osdep.h"
 #include "sysemu.h"
 #include <stdio.h>
-#include <signal.h>
 
 struct progress_state {
     float current;
index f4ff1a1db443588a6e94c756f4d193253c4761fe..939845c82576faf69fea6a410b4ab2504d22b977 100644 (file)
--- a/savevm.c
+++ b/savevm.c
@@ -23,7 +23,6 @@
  */
 #include <unistd.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/time.h>
index 5c4b2886197b0ae40ef0801026efd590c9581d13..509d68ca0f7c84a0955e28289d60df6c246a93fc 100644 (file)
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index 47006329319fff9e0b32e2abcda96797bf2035c8..cf2a368b57bde791d6c83ac35a6563ea1f78c945 100644 (file)
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index b2d4d70a11fe887ba993ab23d56d7844c8b30616..e9b42d03a908d9a721646e0c30fea4c494d44e28 100644 (file)
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
index 82bc614040590dd5379b9a7f4f7b508b1a1e305a..d29b6cf874df5f14ade9c4528c70658b3f788eca 100644 (file)
@@ -24,7 +24,6 @@
 #include <curses.h>
 
 #ifndef _WIN32
-#include <signal.h>
 #include <sys/ioctl.h>
 #include <termios.h>
 #endif
index 14a62d9bdd16565ffac3e58439be330c0886bcd6..f2bd4a035bec52949b24034d0b0179dd6302bd36 100644 (file)
--- a/ui/sdl.c
+++ b/ui/sdl.c
 #include <SDL.h>
 #include <SDL_syswm.h>
 
-#ifndef _WIN32
-#include <signal.h>
-#endif
-
 #include "qemu-common.h"
 #include "console.h"
 #include "sysemu.h"
index 9bab6e353be2532fd20235a399d0bac2e836efe0..c1bcc4a1daa6e46c462ef86ff16f13c48fa30e86 100644 (file)
--- a/usb-bsd.c
+++ b/usb-bsd.c
@@ -39,7 +39,6 @@
 #else
 #include <bus/usb/usb.h>
 #endif
-#include <signal.h>
 
 /* This value has maximum potential at 16.
  * You should also set hw.usb.debug to gain
index baa6574ef5b5fd0c32db1deb9591e256ab81288d..fcfa09e4b80de7d4e2b4e8ef5afd9f6c381b704e 100644 (file)
@@ -37,7 +37,6 @@
 
 #include <dirent.h>
 #include <sys/ioctl.h>
-#include <signal.h>
 
 #include <linux/usbdevice_fs.h>
 #include <linux/version.h>