]> 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>
Mon, 18 Apr 2011 11:54:11 +0000 (05:54 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 Apr 2011 11:54:11 +0000 (05:54 -0600)
compat/os/openbsd.h

index d11e2affd44455dc8aab05e5079b87d34c95cdbd..a9c95ea1495f44d3be288169a58aa8c2f4eb6bc0 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 */