reset response headers, write_queue for error docs
[lighttpd.git] / src / sys-socket.h
blob04c9d9494faf5883c0db0728e7a8dddc1d31295e
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>
24 #endif
26 #endif