diff --git a/avoid-linux-includes.patch b/avoid-linux-includes.patch new file mode 100644 index 0000000..9c0f572 --- /dev/null +++ b/avoid-linux-includes.patch @@ -0,0 +1,12 @@ +--- hdparm-9.64/hdparm.c ++++ hdparm-9.64/hdparm.c +@@ -24,9 +24,6 @@ + #include + #include + #include +-#include +-#include +-#include + #include + #include + diff --git a/hdparm.changes b/hdparm.changes index 89a2f63..b436d67 100644 --- a/hdparm.changes +++ b/hdparm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 9 11:52:28 UTC 2022 - Dirk Müller + +- add avoid-linux-includes.patch (bsc#1202212) + ------------------------------------------------------------------- Sat Jul 23 06:53:09 UTC 2022 - Dirk Müller diff --git a/hdparm.spec b/hdparm.spec index 2223fcb..e82215c 100644 --- a/hdparm.spec +++ b/hdparm.spec @@ -28,6 +28,7 @@ Patch1: hdparm-nostrip.patch Patch2: hdparm-wiper-warn.patch Patch3: hdparm-leak-fix.patch Patch4: hdparm-9.43-fix-bashisms.patch +Patch5: avoid-linux-includes.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(udev) Requires(post): coreutils @@ -43,6 +44,7 @@ driver and IDE drives. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %make_build CFLAGS="%{optflags} -Wall -Wstrict-prototypes" LDFLAGS= CC="gcc"