]> git.pond.sub.org Git - empserver/commitdiff
(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 1 Jan 2006 20:27:24 +0000 (20:27 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 1 Jan 2006 20:27:24 +0000 (20:27 +0000)
the socket functions.

(tcp_listen): Add prototypes.h to verify the extern prototype.

src/lib/gen/tcp_listen.c

index 9b2b167a965806d9b134ec4bf6e94972adc8f728..ecdd37536ba6daa79e9aa98b2260b5d151044b3c 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
+#ifdef _WIN32
+#define WIN32
+#undef NS_ALL
+#include "winsock2.h"
+#else
 #include <sys/socket.h>
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <unistd.h>
+#endif
+#include "prototypes.h"
 
 static int cant_listen(char *, char *, const char *);