From 2fbd48f9f927dbd93974e8e6d985815331a12b15 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 03:53:14 +0000 Subject: fixed build on Windows (after logging chances) --- src/anytun.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/anytun.cpp') diff --git a/src/anytun.cpp b/src/anytun.cpp index d954eae..1fb1fd8 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -362,8 +362,16 @@ int main(int argc, char* argv[]) { try { +#ifndef _MSC_VER cLog.addTarget("syslog:7,anytun,daemon"); - cLog.msg(Log::PRIO_DEBUG) << "anytun started..."; +#else + #ifdef WIN_SERVICE + cLog.addTarget("eventlog:7,anytun"); + #else + cLog.addTarget("stdout:7"); + #endif +#endif + cLog.msg(Log::PRIO_NOTICE) << "anytun started..."; /// std::cout << "anytun - secure anycast tunneling protocol" << std::endl; bool result = gOpt.parse(argc, argv); -- cgit v1.2.3