aboutsummaryrefslogtreecommitdiffstats
path: root/main/hdparm/fix-includes.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-17 06:56:18 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-17 06:56:18 +0000
commitafd299997b829913d2a08ce197a95355658f7a1b (patch)
tree1e6bb92bcfccf2d3bf04f43d414250923ac05b1d /main/hdparm/fix-includes.patch
parent1f8969c785d4dd9bf0ec1464dd863d1c1ffa9c62 (diff)
downloadaports-afd299997b829913d2a08ce197a95355658f7a1b.tar.bz2
aports-afd299997b829913d2a08ce197a95355658f7a1b.tar.xz
main/hdparm: fix musl build
Diffstat (limited to 'main/hdparm/fix-includes.patch')
-rw-r--r--main/hdparm/fix-includes.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/hdparm/fix-includes.patch b/main/hdparm/fix-includes.patch
new file mode 100644
index 0000000000..8a63f7a703
--- /dev/null
+++ b/main/hdparm/fix-includes.patch
@@ -0,0 +1,21 @@
+--- hdparm-9.43/hdparm.h.orig
++++ hdparm-9.43/hdparm.h
+@@ -1,7 +1,7 @@
+ /* Some prototypes for extern functions. */
+
+ //#undef __KERNEL_STRICT_NAMES
+-#include <linux/types.h>
++#include <sys/types.h>
+
+ #if !defined(__GNUC__) && !defined(__attribute__)
+ #define __attribute__(x)
+--- hdparm-9.43/sysfs.c.orig
++++ hdparm-9.43/sysfs.c
+@@ -12,6 +12,7 @@
+ #include <stdio.h>
+ #include <fcntl.h>
+ #include <errno.h>
++#include <limits.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
+ #include <linux/types.h>