]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - debian/patches/kfreebsd.patch
Refresh original patches with new upstream release
[mirror_smartmontools-debian.git] / debian / patches / kfreebsd.patch
CommitLineData
4c436a28
SL
1From: Giuseppe Iuculano <iuculano@debian.org>
2Date: Thu, 27 Sep 2018 19:03:07 +0800
3Subject: kfreebsd
4
5---
6 cciss.cpp | 10 +---------
7 1 file changed, 1 insertion(+), 9 deletions(-)
8
9diff --git a/cciss.cpp b/cciss.cpp
10index f5871dd..62fcba7 100644
827d3b2c
ED
11--- a/cciss.cpp
12+++ b/cciss.cpp
13@@ -18,18 +18,10 @@
14 # ifndef be32toh
15 # define be32toh __be32_to_cpu
16 # endif
17-#elif defined(__FreeBSD__)
18+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
19 # include <sys/endian.h>
20 # include CISS_LOCATION
21 # define _HAVE_CCISS
22-#elif defined(__FreeBSD_kernel__)
23-# include <endian.h>
24-# ifdef __GLIBC__
25-# include <bsd/sys/cdefs.h>
26-# include <stdint.h>
27-# endif
28-# include CISS_LOCATION
29-# define _HAVE_CCISS
30 #endif
31
32 #ifdef _HAVE_CCISS