]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3185: 3.1.11 fails to compile on OpenBSD 4.8 and 4.9
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Apr 2011 13:15:03 +0000 (01:15 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Apr 2011 13:15:03 +0000 (01:15 +1200)
compat/os/openbsd.h

index 5ba1e7bc4fd0fb3930d4b636ed0e2b5537e273e3..87c7e978084bc04adfc6f5cfc2fa0254a1965b1e 100644 (file)
 #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 <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
 #endif /* _SQUID_OPENBSD_ */
 #endif /* SQUID_OS_OPENBSD_H */