[_WIN32] Provide POSIX-style sys/socket.h. Use it rather than

winsock2.h.
This commit is contained in:
Ron Koenderink 2007-08-15 02:40:53 +00:00
parent 2863aba452
commit 6181fd10bf
4 changed files with 45 additions and 13 deletions

View file

@ -45,13 +45,11 @@
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef _WIN32
#include <winsock2.h>
#else
#if !defined(_WIN32)
#include <sys/uio.h>
#include <sys/file.h>
#include <sys/socket.h>
#endif
#include <sys/socket.h>
#include <unistd.h>
#include <time.h>