From: Amos Jeffries Date: Thu, 23 Apr 2009 09:33:44 +0000 (+1200) Subject: Author: Hasso Tepper X-Git-Tag: SQUID_3_2_0_1~1050 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec9909b031dd18cd8a838fa3e112ae0d951b83b9;p=thirdparty%2Fsquid.git Author: Hasso Tepper 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) --- diff --git a/configure.in b/configure.in index a725928dd6..bb0ae5ba51 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/ip/IpIntercept.cc b/src/ip/IpIntercept.cc index 8d104bc75c..dffdea9008 100644 --- a/src/ip/IpIntercept.cc +++ b/src/ip/IpIntercept.cc @@ -79,7 +79,12 @@ #include #include #include +#ifdef HAVE_NET_PF_PFVAR_H +#include +#endif /* HAVE_NET_PF_PFVAR_H */ +#ifdef HAVE_NET_PFVAR_H #include +#endif /* HAVE_NET_PFVAR_H */ #endif /* PF_TRANSPARENT required headers */ #if LINUX_NETFILTER