From 26d8e5961fbd2ae1e45dfc8dfe2d2339584a7948 Mon Sep 17 00:00:00 2001 From: Alex Dowad Date: Thu, 21 May 2015 21:33:41 -0700 Subject: [PATCH] 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. --- lib/rfcnb/rfcnb-io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ... */ -- 2.47.2