aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-27 03:16:37 +0000
committerYang Tse <yangsita@gmail.com>2008-07-27 03:16:37 +0000
commit1ac121292590a0678bf3d23f99e4ec8f4f96a477 (patch)
tree10bb11c4cbbe618413124a135aa517f67c500da9 /src
parent3d4fb5136d8bd28a786a8b310445059912040abf (diff)
setup.h handles definition of _REENTRANT based on NEED_REENTRANT
definition which might be defined in config.h or config-*.h files
Diffstat (limited to 'src')
-rw-r--r--src/setup.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/setup.h b/src/setup.h
index b6a30b957..4d2e2d106 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -72,11 +72,16 @@
#endif /* HAVE_CONFIG_H */
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-/* This is an ugly hack for CURLDEBUG conditions only. We need to include
- the file here, since it might set the _FILE_OFFSET_BITS define, which must
- be set BEFORE all normal system headers. */
-#include "../lib/setup.h"
+/*
+ * HP-UX needs _REENTRANT set for a few function prototypes and
+ * things to appear in the system header files. Unixware needs it
+ * to build proper reentrant code. Others may also need it.
+ */
+
+#ifdef NEED_REENTRANT
+# ifndef _REENTRANT
+# define _REENTRANT
+# endif
#endif
/*