aboutsummaryrefslogtreecommitdiff
path: root/utils/hdparm/patches/020-64bit.patch
blob: b0181c52c92c3ceb67a37d8a7b5b2d26744a2a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- a/fibmap.c
+++ b/fibmap.c
@@ -17,6 +17,9 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__	/* For PPC64, to get LL64 types */
+#endif
 #include <linux/types.h>
 #include <linux/fs.h>
 
--- a/fwdownload.c
+++ b/fwdownload.c
@@ -14,6 +14,9 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__	/* For PPC64, to get LL64 types */
+#endif
 #include <linux/types.h>
 #include <linux/fs.h>
 #include <sys/mman.h>
--- a/hdparm.c
+++ b/hdparm.c
@@ -24,6 +24,9 @@
 #include <sys/mount.h>
 #include <sys/mman.h>
 #include <sys/user.h>
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__	/* For PPC64, to get LL64 types */
+#endif
 #include <linux/types.h>
 #ifndef FSCONFIG_SET_FLAG
 #include <linux/fs.h>
--- a/identify.c
+++ b/identify.c
@@ -4,6 +4,9 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__	/* For PPC64, to get LL64 types */
+#endif
 #include <linux/types.h>
 #include <endian.h>