(posix_accept, posix_bind, posix_listen, posix_setsockopt,
posix_shutdown, posix_socket, socklen_t) [_WIN32]: Move socket related externs to sys/socket.h. (inet_ntop) [_WIN32]: Move extern to inet.h. (tcp_listen): Remove the !WIN32 includes and use the revised sys/socket.h, netinet/in.h, arpa/inet.h and netdb.h.
This commit is contained in:
parent
2b4fd27b97
commit
afedb8c9e2
6 changed files with 72 additions and 57 deletions
|
@ -40,11 +40,9 @@
|
|||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#if !defined(_WIN32)
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include "prototypes.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue