]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/accept.c
Simple POSIX I/O emulation layer to work around Windows's defective
[empserver] / src / lib / player / accept.c
index 9249adf0d5333a3ae9a863fa439939093fd39660..2255164cf91169a5e6dc3fa0159ff3dbbb65a4a5 100644 (file)
@@ -47,8 +47,8 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <sys/ioctl.h>
-#include <unistd.h>
 #endif
+#include <unistd.h>
 #include <signal.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -170,7 +170,7 @@ player_accept(void *unused)
     void *inaddr;
     int s = player_socket;
     struct player *np;
-    int len;
+    socklen_t len;
     int ns;
     int set = 1;
     int stacksize;