]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - debian/patches/kfreebsd.patch
Merge tag 'upstream/6.6'
[mirror_smartmontools-debian.git] / debian / patches / kfreebsd.patch
CommitLineData
827d3b2c
ED
1--- a/cciss.cpp
2+++ b/cciss.cpp
3@@ -18,18 +18,10 @@
4 # ifndef be32toh
5 # define be32toh __be32_to_cpu
6 # endif
7-#elif defined(__FreeBSD__)
8+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
9 # include <sys/endian.h>
10 # include CISS_LOCATION
11 # define _HAVE_CCISS
12-#elif defined(__FreeBSD_kernel__)
13-# include <endian.h>
14-# ifdef __GLIBC__
15-# include <bsd/sys/cdefs.h>
16-# include <stdint.h>
17-# endif
18-# include CISS_LOCATION
19-# define _HAVE_CCISS
20 #endif
21
22 #ifdef _HAVE_CCISS