From 8b2630a82fbecfd57fa38aebb397a755936690e5 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Fri, 18 Sep 2015 15:15:18 +0000 Subject: add README to point to lighttpd-1.4.x as stable git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/sys-socket.h | 73 -------------------------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 src/sys-socket.h (limited to 'src/sys-socket.h') diff --git a/src/sys-socket.h b/src/sys-socket.h deleted file mode 100644 index cf93efd2..00000000 --- a/src/sys-socket.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef SYS_SOCKET_H -#define SYS_SOCKET_H - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#ifdef _WIN32 -#ifndef FD_SETSIZE -/* By default this is 64 */ -#define FD_SETSIZE 4096 -#endif -#include -#include -//#include -//#define HAVE_IPV6 -- not until we've resolved the inet_ntop issue. - -#define ECONNRESET WSAECONNRESET -#define EINPROGRESS WSAEINPROGRESS -#define EALREADY WSAEALREADY -#define ENOTCONN WSAENOTCONN -#define EWOULDBLOCK WSAEWOULDBLOCK -#define ECONNABORTED WSAECONNABORTED -#define ECONNREFUSED WSAECONNREFUSED -#define EHOSTUNREACH WSAEHOSTUNREACH -#define ioctl ioctlsocket -#define hstrerror(x) "" -#define STDIN_FILENO 0 -#define STDOUT_FILENO 1 -#define STDERR_FILENO 2 -#ifndef __MINGW32__ -#define ssize_t int -#endif - -#define sockread( fd, buf, bytes ) recv( fd, buf, bytes, 0 ) - -LI_EXPORT const char * inet_ntop(int af, const void *src, char *dst, socklen_t cnt); -int inet_aton(const char *cp, struct in_addr *inp); -#define HAVE_INET_ADDR -#undef HAVE_INET_ATON - -#else -#include /* required by netinet/tcp.h on FreeBSD */ -#include -#include -#include -#include -#include -#include - -#ifndef SUN_LEN -#define SUN_LEN(su) \ - (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) -#endif - -#define sockread( fd, buf, bytes ) read( fd, buf, bytes ) -#define closesocket(x) close(x) - -#include -#endif /* !_WIN32 */ - -typedef union { -#ifdef HAVE_IPV6 - struct sockaddr_in6 ipv6; -#endif - struct sockaddr_in ipv4; -#ifdef HAVE_SYS_UN_H - struct sockaddr_un un; -#endif - struct sockaddr plain; -} sock_addr; - -#endif -- cgit v1.2.1