diff options
author | Christian Pointner <equinox@anytun.org> | 2009-03-23 00:34:55 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-03-23 00:34:55 +0000 |
commit | 400806d011d1445e566ebfe7e06e60965156bdfe (patch) | |
tree | a458d93ef48d6e198fdcf4948e326ff6d51bc3e2 /src | |
parent | added gResolver to SyncServer (diff) |
fixed build on windows
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 |