(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing

the socket functions.

(tcp_listen): Add prototypes.h to verify the extern prototype.
This commit is contained in:
Ron Koenderink 2006-01-01 20:27:24 +00:00
parent 025135bad0
commit 0b37d8f508

View file

@ -39,11 +39,18 @@
#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 *);