From 96db199df7ada97b9c9947a8f1f89930794355fd Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 9 Feb 2019 19:45:52 +0000 Subject: [PATCH] FreeBSD uses more standard socket flag --- include/lighttpd/sys_socket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/lighttpd/sys_socket.h b/include/lighttpd/sys_socket.h index 3cf3e70a..bd79df15 100644 --- a/include/lighttpd/sys_socket.h +++ b/include/lighttpd/sys_socket.h @@ -53,6 +53,10 @@ int inet_aton(const char *cp, struct in_addr *inp); (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) #endif /* SUN_LEN */ +#ifdef __FreeBSD__ +#define SOL_TCP IPPROTO_TCP +#endif + #define sockread( fd, buf, bytes ) read( fd, buf, bytes ) #define closesocket(x) close(x)