From 400806d011d1445e566ebfe7e06e60965156bdfe Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 23 Mar 2009 00:34:55 +0000 Subject: fixed build on windows --- src/anytun.cpp | 8 ++++++++ src/anytun.suo | Bin 67072 -> 68608 bytes 2 files changed, 8 insertions(+) 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 index 7c00853..a2b304d 100644 Binary files a/src/anytun.suo and b/src/anytun.suo differ -- cgit v1.2.3