mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Sprinkle in some __FreeBSD_version checks so that this compiles again. Don't
define PFIL_HOOKS anymore. Submitted by: keramida
This commit is contained in:
parent
2b79cbbbd2
commit
0ca8ae1641
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139282
@ -115,10 +115,10 @@ extern int opts;
|
||||
# define FR_VERBOSE(verb_pr)
|
||||
# define FR_DEBUG(verb_pr)
|
||||
# define IPLLOG(a, c, d, e) ipflog(a, c, d, e)
|
||||
# if SOLARIS || defined(__sgi)
|
||||
# if SOLARIS || defined(__sgi) || (__FreeBSD_version >= 500043)
|
||||
extern KRWLOCK_T ipf_mutex, ipf_auth, ipf_nat;
|
||||
extern kmutex_t ipf_rw;
|
||||
# endif /* SOLARIS || __sgi */
|
||||
# endif /* SOLARIS || __sgi || __FreeBSD_version */
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
||||
|
@ -171,6 +171,9 @@ static int ipfr_fastroute6 __P((struct mbuf *, struct mbuf **,
|
||||
extern int tcp_mtudisc;
|
||||
extern kmutex_t ipf_rw;
|
||||
extern KRWLOCK_T ipf_mutex;
|
||||
# elif (__FreeBSD_version >= 500043)
|
||||
extern kmutex_t ipf_rw;
|
||||
extern KRWLOCK_T ipf_mutex;
|
||||
# endif
|
||||
#else
|
||||
void init_ifp __P((void));
|
||||
|
@ -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) || (__FreeBSD_version >= 600001)
|
||||
# if (NetBSD >= 199905)
|
||||
# define PFIL_HOOKS
|
||||
# endif
|
||||
# ifdef PFIL_HOOKS
|
||||
|
Loading…
Reference in New Issue
Block a user