[_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
|
@ -34,12 +34,9 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#undef NS_ALL
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#if !defined(_WIN32)
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue