]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
signal.h is required before defining SA_* macros
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Apr 2011 11:34:21 +0000 (05:34 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Apr 2011 11:34:21 +0000 (05:34 -0600)
uncovered by LZZ precompiler.

compat/compat_shared.h

index 877d21eb1bc5a017bf11aa9c96fd3aa44f73c1ed..19ef83aaf400c3f7043900109fdb5a3dd0f6be18 100644 (file)
@@ -195,6 +195,9 @@ max(A const & lhs, A const & rhs)
  * Signalling flags are apparently not always provided.
  * TODO find out if these can be moved into specific OS portability files.
  */
+#if HAVE_SIGNAL_H
+#include <signal.h>
+#endif
 #ifndef SA_RESTART
 #define SA_RESTART 0
 #endif