]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Hasso Tepper <hasso@estpak.ee>
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2009 09:33:44 +0000 (21:33 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2009 09:33:44 +0000 (21:33 +1200)
DragonFly Support for PF

Received via NetBSD project.

NetBSD Maintainer says:
 "pfvar.h part came from DragonFly people."

Their CVS log attributes says, the fix is from hasso@estpak.ee:

| Fix two problems reported by Hasso Tepper via PR pkg/39554.
|
| * DragonFly support.

(other not relevant to this patch)

configure.in
src/ip/IpIntercept.cc

index a725928dd69cc900f307979bed345ff010c9e91d..bb0ae5ba51dc238df98b5bdf4fc4b61cdf38fc4d 100644 (file)
@@ -2355,6 +2355,7 @@ AC_CHECK_HEADERS( \
        netinet/ip_icmp.h \
        netinet/ipl.h \
        netinet/ip_nat.h\
+       net/pf/pfvar.h \
        net/pfvar.h \
        sys/mount.h\
        resolv.h \
@@ -3166,7 +3167,7 @@ dnl PF support requires a header file.
 if test "$PF_TRANSPARENT" ; then
     AC_MSG_CHECKING(if PF header file is installed)
     # hold on to your hats...
-    if test "$ac_cv_header_net_pfvar_h" = "yes"; then
+    if test "$ac_cv_header_net_pfvar_h" = "yes" || test "$ac_cv_header_net_pf_pfvar_h" = "yes"; then
         PF_TRANSPARENT="yes"
         AC_DEFINE(PF_TRANSPARENT, 1)
     else
index 8d104bc75cbe9397b7d8390a2ab92e2cdfc6f936..dffdea90087dd9d38897be4ee2d0eac333bbe47d 100644 (file)
 #include <sys/fcntl.h>
 #include <net/if.h>
 #include <netinet/in.h>
+#ifdef HAVE_NET_PF_PFVAR_H
+#include <net/pf/pfvar.h>
+#endif /* HAVE_NET_PF_PFVAR_H */
+#ifdef HAVE_NET_PFVAR_H
 #include <net/pfvar.h>
+#endif /* HAVE_NET_PFVAR_H */
 #endif /* PF_TRANSPARENT required headers */
 
 #if LINUX_NETFILTER