[squid-dev] [PATCH] Fix broken build with musl libc (caused by sys/signal.h)
Alex Dowad
alexinbeijing at gmail.com
Thu May 7 09:59:51 UTC 2015
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.
---
lib/rfcnb/rfcnb-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rfcnb/rfcnb-io.c b/lib/rfcnb/rfcnb-io.c
index c0ed19c..a02f619 100644
--- a/lib/rfcnb/rfcnb-io.c
+++ b/lib/rfcnb/rfcnb-io.c
@@ -40,7 +40,7 @@
#include <string.h>
#endif
#include <sys/uio.h>
-#include <sys/signal.h>
+#include <signal.h>
int RFCNB_Timeout = 0; /* Timeout in seconds ... */
--
2.0.0.GIT
More information about the squid-dev
mailing list