Adding a macro to supress a deprecation warning for ucontext routines on OSX 10.6...
authorIsaac Dooley <idooley2@illinois.edu>
Thu, 26 Aug 2010 16:17:42 +0000 (11:17 -0500)
committerIsaac Dooley <idooley2@illinois.edu>
Thu, 26 Aug 2010 16:17:42 +0000 (11:17 -0500)
The original error was this:
/usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined

src/arch/net-darwin-x86/conv-mach.h
src/arch/net-darwin-x86_64/conv-mach.h

index cf1e3d331549c18ec5ee1842aa192d19df25dd8a..83aadd3a78a6fbd5f5a5f0883ebf21f22324ae5e 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _CONV_MACH_H
 #define _CONV_MACH_H
 
+// specify the version of the UNIX APIs that we want to use (for ucontext headers)
+#define _XOPEN_SOURCE
 
 #define CMK_ASYNC_NOT_NEEDED                               0
 #define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
index f7a0b834d8f7ac5dfc49c464723da06c9ec6ac52..937dae08cec88a828f1f6af4ba18441b21c721be 100644 (file)
@@ -8,6 +8,9 @@
 #ifndef _CONV_MACH_H
 #define _CONV_MACH_H
 
+// specify the version of the UNIX APIs that we want to use (for ucontext headers)
+#define _XOPEN_SOURCE                                       
+
 #define CMK_64BIT    1
 
 #define CMK_NETPOLL                                        1