You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by fi...@apache.org on 2002/04/27 07:43:05 UTC
cvs commit: apr/include apr_signal.h
fielding 02/04/26 22:43:05
Modified: include apr_signal.h
Log:
Avoid warnings on Darwin by working around a bug in sys/include.h.
Revision Changes Path
1.11 +12 -0 apr/include/apr_signal.h
Index: apr_signal.h
===================================================================
RCS file: /home/cvs/apr/include/apr_signal.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- apr_signal.h 13 Mar 2002 20:39:15 -0000 1.10
+++ apr_signal.h 27 Apr 2002 05:43:05 -0000 1.11
@@ -78,6 +78,18 @@
#if APR_HAVE_SIGACTION
+#if defined(DARWIN) && !defined(__cplusplus) && !defined(_ANSI_SOURCE)
+/* work around Darwin header file bugs
+ * http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2657228.html
+ */
+#undef SIG_DFL
+#undef SIG_IGN
+#undef SIG_ERR
+#define SIG_DFL (void (*)(int))0
+#define SIG_IGN (void (*)(int))1
+#define SIG_ERR (void (*)(int))-1
+#endif
+
typedef void apr_sigfunc_t(int);
/* ### how to doc this? */