summaryrefslogtreecommitdiff
path: root/ACE/ace/os_include/os_netdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/os_include/os_netdb.h')
-rw-r--r--ACE/ace/os_include/os_netdb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/ace/os_include/os_netdb.h b/ACE/ace/os_include/os_netdb.h
index 320e8f191b4..de509b4cbc7 100644
--- a/ACE/ace/os_include/os_netdb.h
+++ b/ACE/ace/os_include/os_netdb.h
@@ -36,6 +36,20 @@ extern "C"
# include /**/ <netdb.h>
#endif /* !ACE_LACKS_NETDB_H */
+#if defined (ACE_VXWORKS)
+# include /**/ <hostLib.h>
+# if (ACE_VXWORKS < 0x700) || defined (GETHOSTBYNAME_REENTRANT)
+// With VxWorks 7 hostLib.h defines GETHOSTBYNAME_REENTRANT when gethostbyname()
+// is reentrant
+# define ACE_VXWORKS_HAS_GETHOSTBYNAME_REENTRANT
+# endif
+# if (ACE_VXWORKS < 0x700) || defined (GETHOSTBYADDR_REENTRANT)
+// With VxWorks 7 hostLib.h defines GETHOSTBYADDR_REENTRANT when gethostbyaddr()
+// is reentrant
+# define ACE_VXWORKS_HAS_GETHOSTBYADDR_REENTRANT
+# endif
+#endif /* ACE_VXWORKS */
+
#if defined (ACE_LACKS_HOSTENT)
struct hostent {
char *h_name; /* official name of host */