summaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-14 18:51:37 +0000
committerYang Tse <yangsita@gmail.com>2009-11-14 18:51:37 +0000
commit1cbc93fb54b773d1564bf2f2194d81c02a985a81 (patch)
tree37c22d1a2eeb535cce65c8f5c08738397ecb6c59 /lib/setup.h
parenta8ddd6ce3141bc4c8745eddae31db1887eeacd0a (diff)
downloadcurl-1cbc93fb54b773d1564bf2f2194d81c02a985a81.tar.gz
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 5f0de9050..49d14ed09 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -86,6 +86,17 @@
/* ================================================================ */
/*
+ * AIX 4.3 and newer needs _THREAD_SAFE defined to build
+ * proper reentrant code. Others may also need it.
+ */
+
+#ifdef NEED_THREAD_SAFE
+# ifndef _THREAD_SAFE
+# define _THREAD_SAFE
+# endif
+#endif
+
+/*
* Tru64 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.