summaryrefslogtreecommitdiff
path: root/ares_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
commite43ac04a1f6a04620eaf111e144dac7f3bb2f77e (patch)
tree143b9f27e851611b1eeeffff1d3e9c298ce1fe3e /ares_setup.h
parentccabe949dda62bc0365fe6e624ccaecb686c1968 (diff)
downloadc-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.tar.gz
c-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.tar.bz2
c-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.zip
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
Diffstat (limited to 'ares_setup.h')
-rw-r--r--ares_setup.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ares_setup.h b/ares_setup.h
index 5896437..ce81b1f 100644
--- a/ares_setup.h
+++ b/ares_setup.h
@@ -49,6 +49,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.