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