diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/anytun.cpp | 8 | ||||
-rw-r--r-- | src/anytun.suo | bin | 67072 -> 68608 bytes |
2 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; diff --git a/src/anytun.suo b/src/anytun.suo Binary files differindex 7c00853..a2b304d 100644 --- a/src/anytun.suo +++ b/src/anytun.suo |