diff --git a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c index 3bef15c24b9d..55107e248a39 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c +++ b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c @@ -156,7 +156,9 @@ struct selinfo ipfselwait[IPL_LOGSIZE]; # include # if defined(NETBSD_PF) # include -# include +# if (__FreeBSD_version < 501108) +# include +# endif /* * We provide the fr_checkp name just to minimize changes later. */