xref: /lighttpd1.4/src/sys-socket.h (revision cd48c280)
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 #else
15 #include <sys/socket.h>
16 #include <sys/ioctl.h>
17 #include <netinet/in.h>
18 #include <netinet/tcp.h>
19 #include <sys/un.h>
20 #include <arpa/inet.h>
21 
22 #include <netdb.h>
23 
24 #ifdef HAVE_SYS_FILIO_H
25 #include <sys/filio.h>  /* FIONREAD (for illumos (OpenIndiana)) */
26 #endif
27 
28 #endif
29 
30 #endif
31