From: Amos Jeffries Date: Mon, 18 Apr 2011 11:54:11 +0000 (-0600) Subject: Bug 3185: 3.1.11 fails to compile on OpenBSD 4.8 and 4.9 X-Git-Tag: SQUID_3_1_12_1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dcd63cbaf6fee5984e5244d7403891d0cb70ad;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 d11e2affd4..a9c95ea149 100644 --- a/compat/os/openbsd.h +++ b/compat/os/openbsd.h @@ -35,5 +35,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 */