]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - debian/patches/kfreebsd.patch
Really fix FTBFS on kfreebsd
[mirror_smartmontools-debian.git] / debian / patches / kfreebsd.patch
1 --- a/cciss.cpp
2 +++ b/cciss.cpp
3 @@ -24,6 +24,10 @@
4 # define _HAVE_CCISS
5 #elif defined(__FreeBSD_kernel__)
6 # include <endian.h>
7 +# ifdef __GLIBC__
8 +# include <bsd/sys/cdefs.h>
9 +# include <stdint.h>
10 +# endif
11 # include CISS_LOCATION
12 # define _HAVE_CCISS
13 #endif
14 --- a/os_freebsd.cpp
15 +++ b/os_freebsd.cpp
16 @@ -1096,6 +1096,7 @@ protected:
17
18 private:
19 int m_disknum; ///< Disk number.
20 + int m_encnum; ///< Enclosure number.
21 };
22
23