summaryrefslogtreecommitdiff
path: root/src/anytun-controld.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2012-01-06 02:21:50 +0000
committerChristian Pointner <equinox@anytun.org>2012-01-06 02:21:50 +0000
commit972ab33e9c0e2381b84c8d16482f0b6ae96f4202 (patch)
tree1445c7dec1b8a583b676cd3bb15f5bfed43475c7 /src/anytun-controld.cpp
parentmodified svn ignore for contrib (diff)
mingw build works now
Diffstat (limited to 'src/anytun-controld.cpp')
-rw-r--r--src/anytun-controld.cpp11
1 files changed, 6 insertions, 5 deletions
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 <iostream>
#include <fstream>
-#include <poll.h>
-#include <fcntl.h>
-#include <pwd.h>
-#include <grp.h>
#include <string>
#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 <vector>
std::list<std::string> 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();