From 972ab33e9c0e2381b84c8d16482f0b6ae96f4202 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 6 Jan 2012 02:21:50 +0000 Subject: mingw build works now --- src/anytun-controld.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/anytun-controld.cpp') diff --git a/src/anytun-controld.cpp b/src/anytun-controld.cpp index c4813ca..884be7f 100644 --- a/src/anytun-controld.cpp +++ b/src/anytun-controld.cpp @@ -32,10 +32,6 @@ #include #include -#include -#include -#include -#include #include #include "datatypes.h" @@ -46,7 +42,11 @@ #include "resolver.h" #include "syncServer.h" -#include "daemonService.h" +#if !defined(_MSC_VER) && !defined(MINGW) +# include "daemonService.h" +#else +# include "nullDaemon.h" +#endif #include std::list config_; @@ -122,6 +122,7 @@ int main(int argc, char* argv[]) boost::thread* syncListenerThread; syncListenerThread = new boost::thread(boost::bind(syncListener)); + if(syncListenerThread) syncListenerThread->detach(); int ret = gSignalController.run(); -- cgit v1.2.3