summaryrefslogtreecommitdiff
path: root/examples/C++NPv2
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv2')
-rw-r--r--examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp b/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
index 5daa2f4543d..5cdc6814f2b 100644
--- a/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
+++ b/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
@@ -4,6 +4,10 @@
** Copyright 2002 Addison Wesley. All Rights Reserved.
*/
+#include "ace/config-all.h"
+
+#if defined (ACE_WIN32)
+
#include "ace/Reactor.h"
#include "ace/Synch.h"
#include "ace/WFMO_Reactor.h"
@@ -133,3 +137,10 @@ int main (int argc, char *argv[])
(N_THREADS, event_loop, &reactor);
return ACE_Thread_Manager::instance ()->wait ();
}
+
+#else /* !ACE_WIN32 */
+int main (int, char *[])
+{
+ return 0;
+}
+#endif /* ACE_WIN32 */