lighttpd 1.4.x
https://www.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
565 B
36 lines
565 B
#ifndef WIN32_SOCKET_H |
|
#define WIN32_SOCKET_H |
|
#include "first.h" |
|
|
|
#ifdef __WIN32 |
|
|
|
#include <winsock2.h> |
|
|
|
#define ECONNRESET WSAECONNRESET |
|
#define EINPROGRESS WSAEINPROGRESS |
|
#define EALREADY WSAEALREADY |
|
#define ECONNABORTED WSAECONNABORTED |
|
|
|
#else |
|
|
|
#include <sys/socket.h> |
|
#include <netinet/in.h> |
|
#include <netinet/tcp.h> |
|
#ifdef HAVE_SYS_UN_H |
|
#include <sys/un.h> |
|
#endif |
|
|
|
#endif |
|
|
|
|
|
#ifndef INET_ADDRSTRLEN |
|
#define INET_ADDRSTRLEN 16 |
|
#endif |
|
#ifndef INET6_ADDRSTRLEN |
|
#define INET6_ADDRSTRLEN 46 |
|
#endif |
|
#ifndef UNIX_PATH_MAX |
|
#define UNIX_PATH_MAX 108 |
|
#endif |
|
|
|
#endif
|
|
|