summaryrefslogtreecommitdiff
path: root/sys-apps/hdparm/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-05 08:07:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-05 08:07:19 +0100
commitc411f65f26582f4c75d2edbf4fa90a708474ace3 (patch)
treea530098a38ad69dcc0e9ec69f47a1bca219d8253 /sys-apps/hdparm/files
parenta5a60a0e01733705770f24a57953bf44ee06467d (diff)
gentoo auto-resync : 05:08:2022 - 08:07:19
Diffstat (limited to 'sys-apps/hdparm/files')
-rw-r--r--sys-apps/hdparm/files/hdparm-9.64-glibc-2.36.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/hdparm/files/hdparm-9.64-glibc-2.36.patch b/sys-apps/hdparm/files/hdparm-9.64-glibc-2.36.patch
new file mode 100644
index 000000000000..c235b0f3941c
--- /dev/null
+++ b/sys-apps/hdparm/files/hdparm-9.64-glibc-2.36.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/863671
+https://sourceforge.net/p/hdparm/patches/52/
+
+From c8fc52968f9e97d29ccf6deb348ec02627d74235 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 29 Jul 2022 13:00:40 -0700
+Subject: [PATCH] hdparm: Remove unused linux/fs.h header
+
+this helps fixing builds with glibc 2.36 where mount.h conflits now with
+kernel mount.h which is included indirectly by linux/fs.h see [1] for
+details
+
+[1] https://sourceware.org/glibc/wiki/Release/2.36
+
+Upstream-Status: Submitted []
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/hdparm.c
++++ b/hdparm.c
+@@ -25,7 +25,6 @@
+ #include <sys/mman.h>
+ #include <sys/user.h>
+ #include <linux/types.h>
+-#include <linux/fs.h>
+ #include <linux/major.h>
+ #include <endian.h>
+ #include <asm/byteorder.h>
+