1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
--- a/cciss.cpp
+++ b/cciss.cpp
@@ -18,18 +18,10 @@
# ifndef be32toh
# define be32toh __be32_to_cpu
# endif
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# include <sys/endian.h>
# include CISS_LOCATION
# define _HAVE_CCISS
-#elif defined(__FreeBSD_kernel__)
-# include <endian.h>
-# ifdef __GLIBC__
-# include <bsd/sys/cdefs.h>
-# include <stdint.h>
-# endif
-# include CISS_LOCATION
-# define _HAVE_CCISS
#endif
#ifdef _HAVE_CCISS
|