(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:
Ron Koenderink 2007-08-28 21:06:22 +00:00
parent 2b4fd27b97
commit afedb8c9e2
6 changed files with 72 additions and 57 deletions

View file

@ -50,10 +50,11 @@
#include <share.h>
#include <stdio.h>
#include <stdarg.h>
#include "sys/socket.h"
#include <sys/stat.h>
#include <ws2tcpip.h>
#include "misc.h"
#include "sys/socket.h"
#include "sys/uio.h"
#include "unistd.h"