5 # define be32toh __be32_to_cpu
7 -#elif defined(__FreeBSD__)
8 +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
9 # include <sys/endian.h>
10 # include CISS_LOCATION
12 -#elif defined(__FreeBSD_kernel__)
15 -# include <bsd/sys/cdefs.h>
18 -# include CISS_LOCATION