summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-31 14:53:29 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-31 22:54:01 +0000
commit1bc2565bff009e0b2560c4c8401da447d00d4668 (patch)
tree9b9b76cadbec9b6ffdaa5064c453822d4b571a54
parent91e43303949491d8865bac6fd0464102f176fc52 (diff)
downloadwireshark-1bc2565bff009e0b2560c4c8401da447d00d4668.tar.gz
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.c1
-rw-r--r--rawshark.c2
-rw-r--r--tfshark.c2
-rw-r--r--tshark.c2
4 files changed, 2 insertions, 5 deletions
diff --git a/file.c b/file.c
index e2510617a2..d3077039fe 100644
--- a/file.c
+++ b/file.c
@@ -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
diff --git a/tfshark.c b/tfshark.c
index 7b713b793c..b0fd8aa553 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -43,8 +43,6 @@
#include <fcntl.h>
#endif
-#include <signal.h>
-
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
diff --git a/tshark.c b/tshark.c
index 934c731dfe..928f8d4337 100644
--- a/tshark.c
+++ b/tshark.c
@@ -44,7 +44,9 @@
#include <fcntl.h>
#endif
+#ifndef _WIN32
#include <signal.h>
+#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>