mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
hdparm: Fix build with glibc 2.36
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
03d57d8f1e
commit
fac5f144bb
@@ -70,6 +70,7 @@ $(subst %,%_BLAKE2,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/hdparm-9.64-fix-glibc-headers.patch
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
cd $(DIR_APP) && make install
|
||||
@rm -rf $(DIR_APP)
|
||||
|
||||
11
src/patches/hdparm-9.64-fix-glibc-headers.patch
Normal file
11
src/patches/hdparm-9.64-fix-glibc-headers.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- hdparm-9.64/hdparm.c
|
||||
+++ hdparm-9.64/hdparm.c
|
||||
@@ -24,9 +24,6 @@
|
||||
#include <sys/mount.h>
|
||||
#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>
|
||||
Reference in New Issue
Block a user