From 9bbe88ff735a24d79756a98c051db3e488cdacea Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 30 Jan 2022 22:55:09 -0800 Subject: [PATCH] hdparm: fix formats for mips64 and ppc64 Signed-off-by: Rosen Penev --- utils/hdparm/patches/020-64bit.patch | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 utils/hdparm/patches/020-64bit.patch diff --git a/utils/hdparm/patches/020-64bit.patch b/utils/hdparm/patches/020-64bit.patch new file mode 100644 index 0000000000..d7389fba5d --- /dev/null +++ b/utils/hdparm/patches/020-64bit.patch @@ -0,0 +1,48 @@ +--- a/fibmap.c ++++ b/fibmap.c +@@ -17,6 +17,9 @@ + #include + #include + #include ++#ifndef __SANE_USERSPACE_TYPES__ ++#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ ++#endif + #include + #include + +--- a/fwdownload.c ++++ b/fwdownload.c +@@ -14,6 +14,9 @@ + #include + #include + #include ++#ifndef __SANE_USERSPACE_TYPES__ ++#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ ++#endif + #include + #include + #include +--- a/hdparm.c ++++ b/hdparm.c +@@ -24,6 +24,9 @@ + #include + #include + #include ++#ifndef __SANE_USERSPACE_TYPES__ ++#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ ++#endif + #include + #include + #include +--- a/identify.c ++++ b/identify.c +@@ -4,6 +4,9 @@ + #include + #include + #include ++#ifndef __SANE_USERSPACE_TYPES__ ++#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */ ++#endif + #include + #include + -- 2.30.2