diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-04 19:00:45 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-04 19:00:45 +0000 |
commit | 5dc6cb53310c149acd6725dbb8fdeeca3550190d (patch) | |
tree | 6753eb780e3e9cc527b4996ec399f152f8080ca4 /tests | |
parent | 21a3c023ab4b8b3fbc8f1ce82db5a3cc2bdc541f (diff) | |
download | ATCD-5dc6cb53310c149acd6725dbb8fdeeca3550190d.tar.gz |
added ACE_LACKS_GETHOSTENT, so that SOCK_Connector_Test doesn't have to enumerate the platforms that don't have ::gethostent ()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SOCK_Connector_Test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp index ab9cad90039..57f713ef3cf 100644 --- a/tests/SOCK_Connector_Test.cpp +++ b/tests/SOCK_Connector_Test.cpp @@ -34,8 +34,8 @@ find_another_host (char other_host[]) { ACE_OS::strcpy (other_host, ACE_DEFAULT_SERVER_HOST); // If all else fails +#if !defined (ACE_LACKS_GETHOSTENT) // These gethost-type things don't work everywhere. -#if !defined (ACE_WIN32) && !defined (VXWORKS) && !defined (ACE_NETBSD) && !defined (ACE_PSOS) && !defined (__Lynx__) struct hostent *h; struct utsname un; @@ -67,7 +67,7 @@ find_another_host (char other_host[]) } endhostent (); -#endif /* !defined (ACE_WIN32) && !defined (VXWORKS) !defined (ACE_NETBSD) */ +#endif /* ! ACE_LACKS_GETHOSTENT */ } static int |