From 068f1c53d3f2a265afa8a4c18aa135a0e18f23ce Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 9 Apr 2011 01:15:03 +1200 Subject: [PATCH] Bug 3185: 3.1.11 fails to compile on OpenBSD 4.8 and 4.9 --- compat/os/openbsd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compat/os/openbsd.h b/compat/os/openbsd.h index 5ba1e7bc4f..87c7e97808 100644 --- a/compat/os/openbsd.h +++ b/compat/os/openbsd.h @@ -30,5 +30,13 @@ #define IPV6_V6ONLY 27 // from OpenBSD 4.3 headers. (NP: does not match non-BSD OS values) #endif +/* OpenBSD 4.8 and 4.9 require netinet/in.h before arpa/inet.h */ +#if HAVE_NETINET_IN_H +#include +#endif +#if HAVE_ARPA_INET_H +#include +#endif + #endif /* _SQUID_OPENBSD_ */ #endif /* SQUID_OS_OPENBSD_H */ -- 2.47.3