darwin90-ukernel-setjmp-conflict-20060927
authorDerrick Brashear <shadow@dementia.org>
Wed, 27 Sep 2006 22:13:15 +0000 (22:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 Sep 2006 22:13:15 +0000 (22:13 +0000)
FIXES 39354

setjmp isn't safe for #define KERNEL

src/afs/UKERNEL/sysincludes.h

index 54f078b..2c851b0 100644 (file)
@@ -21,7 +21,9 @@
 #include  <limits.h>
 #include  <assert.h>
 #include  <stdarg.h>
+#if !defined(AFS_USR_DARWIN_ENV) && !defined(AFS_USR_FBSD_ENV) /* must be included after KERNEL undef'd */
 #include <setjmp.h>
+#endif
 
 #ifdef AFS_USR_SUN5_ENV
 #include  <signal.h>
 #define AFS_USR_UNDEF_KERNEL_ENV 1
 #endif
 #include  <errno.h>
+#include  <setjmp.h>
 #include  <sys/param.h>
 #include  <sys/types.h>
 #include  <sys/socket.h>