aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_setup.h')
-rw-r--r--ares/ares_setup.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ares/ares_setup.h b/ares/ares_setup.h
index 589643716..ce81b1fa3 100644
--- a/ares/ares_setup.h
+++ b/ares/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.