From: Amos Jeffries Date: Fri, 8 Apr 2011 13:15:03 +0000 (+1200) Subject: Bug 3185: 3.1.11 fails to compile on OpenBSD 4.8 and 4.9 X-Git-Tag: take06~27^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=068f1c53d3f2a265afa8a4c18aa135a0e18f23ce;p=thirdparty%2Fsquid.git Bug 3185: 3.1.11 fails to compile on OpenBSD 4.8 and 4.9 --- 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 */