summaryrefslogtreecommitdiff
path: root/examples/NT_Service
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2003-11-05 09:38:58 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2003-11-05 09:38:58 +0000
commit52a69132dcdd37356e72932f21f901e2891799d4 (patch)
treeecdf6fdda567944749931309cb2e1ccee14872ad /examples/NT_Service
parent47710c73201da6663d176c948d21aa2adf14c15b (diff)
downloadATCD-52a69132dcdd37356e72932f21f901e2891799d4.tar.gz
ChangeLogTag: Thu Nov 5 09:33:19 UTC 2003 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples/NT_Service')
-rw-r--r--examples/NT_Service/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/NT_Service/main.cpp b/examples/NT_Service/main.cpp
index 4fa7d7eaef7..6c93bf18a93 100644
--- a/examples/NT_Service/main.cpp
+++ b/examples/NT_Service/main.cpp
@@ -22,6 +22,7 @@
#include "ace/Get_Opt.h"
#include "ntsvc.h"
#include "ace/streams.h"
+#include "ace/OS_main.h"
// Default for the -i (install) option
#define DEFAULT_SERVICE_INIT_STARTUP SERVICE_AUTO_START
@@ -225,7 +226,7 @@ Process::run (int argc, ACE_TCHAR* argv[])
else
{
ofstream *output_file = new ofstream("ntsvc.log", ios::out);
- if (output_file && output_file->rdstate() == ios::goodbit)
+ if (output_file && output_file->rdstate() == ios::goodbit)
ACE_LOG_MSG->msg_ostream(output_file, 1);
ACE_LOG_MSG->open(argv[0],
ACE_Log_Msg::STDERR | ACE_Log_Msg::OSTREAM,