From: Alex Dowad Date: Mon, 11 May 2015 15:31:57 +0000 (-0700) Subject: Fix signal.h usage to resolve compiler warning X-Git-Tag: merge-candidate-3-v1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bde16e2345953fdbace79962abf66e631fdf740;p=thirdparty%2Fsquid.git Fix signal.h usage to resolve compiler warning When included, musl libc's sys/signal.h issues a compiler warning stating that signal.h should be used directly instead. If gcc is treating all warnings as errors, this breaks the build. glibc's sys/signal.h does not contain any definitions; all it does is include signal.h (indirectly). So directly including signal.h doesn't break anything with glibc. --- diff --git a/lib/rfcnb/rfcnb-io.c b/lib/rfcnb/rfcnb-io.c index c0ed19cb3c..e761391221 100644 --- a/lib/rfcnb/rfcnb-io.c +++ b/lib/rfcnb/rfcnb-io.c @@ -36,11 +36,13 @@ #include "rfcnb/rfcnb-util.h" #include "rfcnb/std-includes.h" +#if HAVE_SIGNAL_H +#include +#endif #if HAVE_STRING_H #include #endif #include -#include int RFCNB_Timeout = 0; /* Timeout in seconds ... */