diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/sys-socket.h | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/sys-socket.h')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/src/sys-socket.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/sys-socket.h b/data/lighttpd/lighttpd-1.4.53/src/sys-socket.h new file mode 100644 index 000000000..7851656be --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/src/sys-socket.h @@ -0,0 +1,45 @@ +#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 + +/* for solaris 2.5 and NetBSD 1.3.x */ +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + +#ifndef SHUT_WR +#define SHUT_WR 1 +#endif + +#endif |