summaryrefslogtreecommitdiff
path: root/ACE/examples/NT_Service/ntsvc.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/NT_Service/ntsvc.h')
-rw-r--r--ACE/examples/NT_Service/ntsvc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/examples/NT_Service/ntsvc.h b/ACE/examples/NT_Service/ntsvc.h
index cecc91b34c5..1444b5977d9 100644
--- a/ACE/examples/NT_Service/ntsvc.h
+++ b/ACE/examples/NT_Service/ntsvc.h
@@ -21,6 +21,10 @@
#ifndef NTSVC_H_
#define NTSVC_H_
+#include "ace/config-lite.h"
+
+#if defined (ACE_WIN32) && !defined (ACE_LACKS_WIN32_SERVICES)
+
#include "ace/Event_Handler.h"
#include "ace/NT_Service.h"
#include "ace/Singleton.h"
@@ -62,4 +66,6 @@ private:
typedef ACE_Singleton<Service, ACE_Mutex> SERVICE;
+#endif /* ACE_WIN32 && !ACE_LACKS_WIN32_SERVICES */
+
#endif /* #ifndef NTSVC_H_ */