summaryrefslogtreecommitdiff
path: root/ACE/examples/NT_Service/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/NT_Service/main.cpp')
-rw-r--r--ACE/examples/NT_Service/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/examples/NT_Service/main.cpp b/ACE/examples/NT_Service/main.cpp
index fbbf4a60cf4..43f09fba0dd 100644
--- a/ACE/examples/NT_Service/main.cpp
+++ b/ACE/examples/NT_Service/main.cpp
@@ -21,6 +21,8 @@
#include "ace/Get_Opt.h"
#include "ntsvc.h"
+
+#if defined (ACE_WIN32) && !defined (ACE_LACKS_WIN32_SERVICES)
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
#include "ace/OS_NS_errno.h"
@@ -254,3 +256,15 @@ ACE_TMAIN (int argc, ACE_TCHAR* argv[])
return PROCESS::instance ()->run (argc, argv);
}
+#else
+
+#include "ace/OS_main.h"
+
+int
+ACE_TMAIN (int, ACE_TCHAR*[])
+{
+ // This program needs Windows services.
+ return 0;
+}
+
+#endif /* ACE_WIN32 && !ACE_LACKS_WIN32_SERVICES */