aboutsummaryrefslogtreecommitdiff
path: root/ares/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares/setup.h')
-rw-r--r--ares/setup.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ares/setup.h b/ares/setup.h
index 70b8ecb0a..594042836 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -40,6 +40,16 @@
#endif /* HAVE_CONFIG_H */
/*
+ * Solaris 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
+#endif
+
+/*
* Include header files for windows builds before redefining anything.
* Use this preproessor block only to include or exclude windows.h,
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs