summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-23 00:34:55 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-23 00:34:55 +0000
commit400806d011d1445e566ebfe7e06e60965156bdfe (patch)
treea458d93ef48d6e198fdcf4948e326ff6d51bc3e2 /src/anytun.cpp
parentadded gResolver to SyncServer (diff)
fixed build on windows
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index 28458e0..264e26f 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -313,7 +313,11 @@ void receiver(TunDevice* dev, PacketSource* src)
}
}
+#ifndef NO_DAEMON
void startSendRecvThreads(PrivInfo& privs, TunDevice* dev, PacketSource* src)
+#else
+void startSendRecvThreads(TunDevice* dev, PacketSource* src)
+#endif
{
src->waitUntilReady();
@@ -480,7 +484,11 @@ int main(int argc, char* argv[])
// wait for packet source to finish in a seperate thread in order
// to be still able to process signals while waiting
+#ifndef NO_DAEMON
boost::thread(boost::bind(startSendRecvThreads, privs, &dev, src));
+#else
+ boost::thread(boost::bind(startSendRecvThreads, &dev, src));
+#endif
#if defined(WIN_SERVICE)
int ret = 0;