[_WIN32] Provide POSIX-style sys/socket.h. Use it rather than
winsock2.h.
This commit is contained in:
parent
2863aba452
commit
6181fd10bf
4 changed files with 45 additions and 13 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue