summaryrefslogtreecommitdiff
path: root/examples/Connection
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-30 19:40:16 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-30 19:40:16 +0000
commitab974092e97d0164a2acfc2beb631ddeeeaabca2 (patch)
tree2e0b8d1c4880143f060019d1deb1074976c2ae40 /examples/Connection
parent3580bcc039965e9391620b6d91ec24ce2b87e3b1 (diff)
downloadATCD-ab974092e97d0164a2acfc2beb631ddeeeaabca2.tar.gz
Made sure the program knows if Winsock2 is not installed on non-NT win32 platforms.
Diffstat (limited to 'examples/Connection')
-rw-r--r--examples/Connection/non_blocking/test_sock_connector.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/Connection/non_blocking/test_sock_connector.cpp b/examples/Connection/non_blocking/test_sock_connector.cpp
index ae220f954d7..befa6be50a1 100644
--- a/examples/Connection/non_blocking/test_sock_connector.cpp
+++ b/examples/Connection/non_blocking/test_sock_connector.cpp
@@ -21,9 +21,16 @@ main (int argc, char *argv[])
// necessary since <select> on NT does not support waiting on STDIN.
#if defined (ACE_WIN32)
+# if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
ACE_WFMO_Reactor wfmo_reactor;
ACE_Reactor reactor (&wfmo_reactor);
ACE_Reactor::instance (&reactor);
+# else
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Non-NT platform (Win95/98?) without Winsock2 installed.\n"
+ "This example requires WFMO_Reactor which requires.\n"
+ "Winsock2 be installed.\n"), -1);
+# endif /* !ACE_HAS_WINSOCK2 && ACE_HAS_WINSOCK2 != 0 */
#endif /* ACE_WIN32 */
// Perform Service_Config initializations