From __FreeBSD_version 600001 on PFIL_HOOKS is permanently in the kernel and

doesn't require to include opt_pfil_hooks.h.
This commit is contained in:
Andre Oppermann 2004-08-27 20:01:08 +00:00
parent c2414060cf
commit 5f56967319
2 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,8 @@
# if defined(_KERNEL) && !defined(IPFILTER_LKM)
# include "opt_ipfilter.h"
# endif
# if defined(_KERNEL) && (__FreeBSD_version >= 501108) && !defined(KLD_MODULE)
# if defined(_KERNEL) && (__FreeBSD_version >= 501108) && \
(__FreeBSD_version < 600001) && !defined(KLD_MODULE)
# include "opt_pfil_hooks.h"
# endif
#endif

View File

@ -497,7 +497,7 @@ typedef struct ipflog {
#if (defined(NetBSD) && (NetBSD > 199609) && (NetBSD <= 1991011)) || \
(defined(NetBSD1_2) && NetBSD1_2 > 1) || (defined(__FreeBSD_version) && \
(__FreeBSD_version >= 500011))
# if (NetBSD >= 199905)
# if (NetBSD >= 199905) || (__FreeBSD_version >= 600001)
# define PFIL_HOOKS
# endif
# ifdef PFIL_HOOKS