9 #define ECONNRESET WSAECONNRESET
10 #define EINPROGRESS WSAEINPROGRESS
11 #define EALREADY WSAEALREADY
12 #define ECONNABORTED WSAECONNABORTED
13 #define ioctl ioctlsocket
15 #include <sys/socket.h>
16 #include <sys/ioctl.h>
17 #include <netinet/in.h>
18 #include <netinet/tcp.h>
20 #include <arpa/inet.h>
24 #ifdef HAVE_SYS_FILIO_H
25 #include <sys/filio.h> /* FIONREAD (for illumos (OpenIndiana)) */