aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-05-31 07:01:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-05-31 07:01:08 +0000
commit6532f737ebdff156afe6e9271fea512fc0dbbf12 (patch)
treeb0e569a493cddda7be282f20fe5d2e80e40ddb22
parent928ff54388f51e49cae22b68ed0c9c84aa83c994 (diff)
if NEED_REENTRANT is set, define _REENTRANT already here since it has to
be defined as many include files as possible (Solaris req)
-rw-r--r--lib/setup.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 6d28e3c79..c343fb093 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -44,6 +44,14 @@
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