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:
Robert Millan 2011-11-24 21:23:58 +00:00
parent 598585e835
commit bec54dbdc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227957
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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>