From b6dcd63cbaf6fee5984e5244d7403891d0cb70ad Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 18 Apr 2011 05:54:11 -0600 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 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 */ -- 2.47.3