Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc6
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();