summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-20 20:41:59 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-20 20:41:59 +0000
commit5236fe9acd65437de4e13a9d75b9d9c7ee4bb9b9 (patch)
treefb843471cb03b02062c66f8053b0be3126b38b78
parent67ce1e9d0cd45bb3837547c8eb9ae65b2e6609f1 (diff)
downloadATCD-5236fe9acd65437de4e13a9d75b9d9c7ee4bb9b9.tar.gz
(host_is_up): don't define this function ifdef ACE_LACKS_GETHOSTENT,
because it isn't used in that case.
-rw-r--r--tests/SOCK_Connector_Test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp
index cb9c18eb010..b39da3dd442 100644
--- a/tests/SOCK_Connector_Test.cpp
+++ b/tests/SOCK_Connector_Test.cpp
@@ -30,10 +30,10 @@ USELIB("..\ace\aced.lib");
//---------------------------------------------------------------------------
#endif /* defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 */
+#if !defined (ACE_LACKS_GETHOSTENT)
// Determine if a host exists, is reachable, and is up.
// Attempt a blocking connection to it; if it succeeds,
// then the host exists, is reachable, and is up.
-
static u_int
host_is_up (ASYS_TCHAR hostname[])
{
@@ -51,6 +51,7 @@ host_is_up (ASYS_TCHAR hostname[])
sock.close ();
return status == 0 ? 1 : 0;
}
+#endif /* ! ACE_LACKS_GETHOSTENT */
// The original problem this program tested for was incorrectly saying
// a non-blocking connect completed successfully when it didn't. The