Adjust a few old checks to use __FreeBSD_version macro to
determine which version of FreeBSD kernel we're compiling. Approved by: kib (mentor)
This commit is contained in:
parent
598585e835
commit
bec54dbdc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227957
@ -985,10 +985,10 @@ typedef u_int32_t u_32_t;
|
||||
typedef struct mbuf mb_t;
|
||||
# endif /* _KERNEL */
|
||||
|
||||
# if __FreeBSD__ < 3
|
||||
# if __FreeBSD_version < 300000
|
||||
# include <machine/spl.h>
|
||||
# else
|
||||
# if __FreeBSD__ == 3
|
||||
# if __FreeBSD_version < 400000
|
||||
# if defined(IPFILTER_LKM) && !defined(ACTUALLY_LKM_NOT_KERNEL)
|
||||
# define ACTUALLY_LKM_NOT_KERNEL
|
||||
# endif
|
||||
|
@ -63,7 +63,7 @@ struct file;
|
||||
# include <sys/stream.h>
|
||||
# include <sys/kmem.h>
|
||||
#endif
|
||||
#if __FreeBSD__ > 2
|
||||
#if __FreeBSD_version >= 300000
|
||||
# include <sys/queue.h>
|
||||
#endif
|
||||
#include <net/if.h>
|
||||
|
Loading…
Reference in New Issue
Block a user