]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build on OpenBSD (#885)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 15 Aug 2021 16:00:10 +0000 (16:00 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 17 Aug 2021 16:02:37 +0000 (16:02 +0000)
On OpenBSD 6.9, SOL_SOCKET is defined in sys/socket.h.

src/comm/Tcp.cc

index 59769a3233ec57f28ef04c5212a51d9f1901f484..c1c7346668e1f5830613bd4d9f28119ef8797d45 100644 (file)
@@ -15,6 +15,9 @@
 #if HAVE_NETINET_TCP_H
 #include <netinet/tcp.h>
 #endif
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 #include <type_traits>
 
 /// setsockopt(2) wrapper