[SCons] define with_krb5 for SCons build
[lighttpd.git] / src / sys-socket.h
blobe3ca0299c6726a369f96feab815ee721748e6500
1 #ifndef WIN32_SOCKET_H
2 #define WIN32_SOCKET_H
3 #include "first.h"
5 #ifdef __WIN32
7 #include <winsock2.h>
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>
23 #include <netdb.h>
25 #ifdef HAVE_SYS_FILIO_H
26 #include <sys/filio.h> /* FIONREAD (for illumos (OpenIndiana)) */
27 #endif
29 #endif
31 #endif