aboutsummaryrefslogtreecommitdiff
path: root/src/serversocket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/serversocket.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/serversocket.h b/src/serversocket.h
index 1742786..168c5e1 100644
--- a/src/serversocket.h
+++ b/src/serversocket.h
@@ -11,7 +11,12 @@
11#include <stdint.h> 11#include <stdint.h>
12#include "bu/fstring.h" 12#include "bu/fstring.h"
13#include "bu/exceptionbase.h" 13#include "bu/exceptionbase.h"
14#include <sys/select.h> 14
15#ifdef WIN32
16 #include <Winsock2.h>
17#else
18 #include <sys/select.h>
19#endif
15 20
16namespace Bu 21namespace Bu
17{ 22{
@@ -45,7 +50,11 @@ namespace Bu
45 void startServer( struct sockaddr_in &name, int nPoolSize ); 50 void startServer( struct sockaddr_in &name, int nPoolSize );
46 51
47 fd_set fdActive; 52 fd_set fdActive;
53#ifdef WIN32
54 unsigned int nServer;
55#else
48 int nServer; 56 int nServer;
57#endif
49 int nPort; 58 int nPort;
50 }; 59 };
51} 60}