diff options
author | Felix Janda <felix.janda@posteo.de> | 2017-04-14 18:41:42 -0400 |
---|---|---|
committer | Thomas Thorne <TafThorne@GoogleMail.com> | 2017-08-09 08:13:52 +0100 |
commit | 5d172eebcec14e96b4f613505778e37a4bedacc8 (patch) | |
tree | f7fa669ce9b4de806b7d22d38a62b18627b9531a | |
parent | 3f66650ec3a230fa8b0cf743204b103650cddf5f (diff) | |
download | distcc-git-5d172eebcec14e96b4f613505778e37a4bedacc8.tar.gz |
serve.c: remove unecessary <*signal.h> include
The relevant code has been factored out into util.c.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/serve.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index cd5fdd1..c77c802 100644 --- a/configure.ac +++ b/configure.ac @@ -254,7 +254,7 @@ AC_C_BIGENDIAN # Some of these are needed by popt (or other libraries included in the future). -AC_CHECK_HEADERS([unistd.h sys/types.h sys/sendfile.h sys/signal.h]) +AC_CHECK_HEADERS([unistd.h sys/types.h sys/sendfile.h]) AC_CHECK_HEADERS([ctype.h sys/resource.h sys/socket.h sys/select.h]) AC_CHECK_HEADERS([netinet/in.h], [], [], [#if HAVE_SYS_TYPES_H diff --git a/src/serve.c b/src/serve.c index 5eb940c..aafe018 100644 --- a/src/serve.c +++ b/src/serve.c @@ -61,15 +61,11 @@ #include <string.h> #include <fcntl.h> #include <errno.h> -#include <signal.h> #include <time.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> -#ifdef HAVE_SYS_SIGNAL_H -# include <sys/signal.h> -#endif /* HAVE_SYS_SIGNAL_H */ #include <sys/param.h> #include <sys/socket.h> #include <sys/time.h> |