aboutsummaryrefslogtreecommitdiff
path: root/ares/setup.h
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 /ares/setup.h
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 'ares/setup.h')
-rw-r--r--ares/setup.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ares/setup.h b/ares/setup.h
index 594042836..dd07ae184 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -40,13 +40,15 @@
#endif /* HAVE_CONFIG_H */
/*
- * Solaris needs _REENTRANT set for a few function prototypes and
+ * 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.
*/
-#ifndef _REENTRANT
-# define _REENTRANT
+#ifdef NEED_REENTRANT
+# ifndef _REENTRANT
+# define _REENTRANT
+# endif
#endif
/*