From 6532f737ebdff156afe6e9271fea512fc0dbbf12 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 31 May 2001 07:01:08 +0000
Subject: [PATCH] if NEED_REENTRANT is set, define _REENTRANT already here
 since it has to be defined as many include files as possible (Solaris req)

---
 lib/setup.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/setup.h b/lib/setup.h
index 6d28e3c790..c343fb0937 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
-- 
GitLab