diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-26 18:10:17 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-26 18:10:17 +0000 |
commit | 2b9f068e7ee4c0d249c715f9eb5a3c2c8a11e6f8 (patch) | |
tree | fcd373f97385dc150437bc09b2143e0ceee589e1 /src/core/netconnection.cc | |
parent | a29aa1ee2935857f616351a23578311f514516d4 (diff) |
win32 updates
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index b640595..18ae3bc 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -74,8 +74,12 @@ void NetConnection::connect(std::string const &to_host, int to_port) connection_error = false; FD_ZERO(&clientset); +#ifdef _WIN32 + FD_SET((unsigned int) fd(), &clientset); +#else FD_SET(fd(), &clientset); - +#endif + connection_timeout = application()->time(); connection_keepalive = application()->time(); |