if NEED_REENTRANT is set, define _REENTRANT already here since it has to
authorDaniel Stenberg <daniel@haxx.se>
Thu, 31 May 2001 07:01:08 +0000 (07:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 31 May 2001 07:01:08 +0000 (07:01 +0000)
be defined as many include files as possible (Solaris req)

lib/setup.h

index 6d28e3c..c343fb0 100644 (file)
 typedef char bool;
 #endif                     /* (rabe) */
 
+#ifdef NEED_REENTRANT
+/* Solaris machines needs _REENTRANT set for a few function prototypes and
+   things to appear in the #include files. We need to #define it before all
+   #include files */
+#define _REENTRANT
+#endif
+
+
 #include <stdio.h>
 #ifndef OS
 #ifdef WIN32