diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-31 14:53:29 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-31 22:54:01 +0000 |
commit | 1bc2565bff009e0b2560c4c8401da447d00d4668 (patch) | |
tree | 9b9b76cadbec9b6ffdaa5064c453822d4b571a54 | |
parent | 91e43303949491d8865bac6fd0464102f176fc52 (diff) | |
download | wireshark-1bc2565bff009e0b2560c4c8401da447d00d4668.tar.gz wireshark-1bc2565bff009e0b2560c4c8401da447d00d4668.tar.bz2 wireshark-1bc2565bff009e0b2560c4c8401da447d00d4668.zip |
Don't include signal.h unless we need it.
Change-Id: I3965e0951eee919720f780b5e52732fd18fd9786
Reviewed-on: https://code.wireshark.org/review/6194
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | file.c | 1 | ||||
-rw-r--r-- | rawshark.c | 2 | ||||
-rw-r--r-- | tfshark.c | 2 | ||||
-rw-r--r-- | tshark.c | 2 |
4 files changed, 2 insertions, 5 deletions
@@ -33,7 +33,6 @@ #include <string.h> #include <ctype.h> #include <errno.h> -#include <signal.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> diff --git a/rawshark.c b/rawshark.c index 00c805defe..8859054053 100644 --- a/rawshark.c +++ b/rawshark.c @@ -54,8 +54,6 @@ #include <fcntl.h> #endif -#include <signal.h> - #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif @@ -43,8 +43,6 @@ #include <fcntl.h> #endif -#include <signal.h> - #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif @@ -44,7 +44,9 @@ #include <fcntl.h> #endif +#ifndef _WIN32 #include <signal.h> +#endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> |