]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4620: NetBSD build error with --enable-ipf-transparent
authorTakahiro Kambe <taca@back-street.net>
Tue, 25 Oct 2016 08:25:30 +0000 (21:25 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 Oct 2016 08:25:30 +0000 (21:25 +1300)
On NetBSD sys/param.h must be included before netinet/ip_compat.h

src/ip/Intercept.cc

index e197d6a4bdc41a1c7d4b169860415c066dd965c8..af108d8ae0dda4a5b6867b4db65c05c9b052ae14 100644 (file)
@@ -25,6 +25,9 @@
 #define IPFILTER_VERSION        5000004
 #endif
 
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #if HAVE_SYS_IOCCOM_H
 #include <sys/ioccom.h>
 #endif