1: #ifndef WIN32_SOCKET_H
2: #define WIN32_SOCKET_H
3: #include "first.h"
4:
5: #ifdef __WIN32
6:
7: #include <winsock2.h>
8:
9: #define ECONNRESET WSAECONNRESET
10: #define EINPROGRESS WSAEINPROGRESS
11: #define EALREADY WSAEALREADY
12: #define ECONNABORTED WSAECONNABORTED
13: #define ioctl ioctlsocket
14: #define hstrerror(x) ""
15: #else
16: #include <sys/socket.h>
17: #include <sys/ioctl.h>
18: #include <netinet/in.h>
19: #include <netinet/tcp.h>
20: #include <sys/un.h>
21: #include <arpa/inet.h>
22:
23: #include <netdb.h>
24:
25: #ifdef HAVE_SYS_FILIO_H
26: #include <sys/filio.h> /* FIONREAD (for illumos (OpenIndiana)) */
27: #endif
28:
29: #endif
30:
31: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>