(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:
parent
025135bad0
commit
0b37d8f508
1 changed files with 7 additions and 0 deletions
|
@ -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 *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue