diff options
author | Richard Kunze <richard.kunze@web.de> | 2014-11-16 01:56:12 +0100 |
---|---|---|
committer | Richard Kunze <richard.kunze@web.de> | 2014-11-16 01:56:12 +0100 |
commit | feb67e6b07274f3efe1b17d724fd9a12a323c818 (patch) | |
tree | 3979d9182f868a8db4450b97d256b879940afba0 /utils/hdparm/patches | |
parent | 18d534ba40497390650cb89c4721c2be0dd74ba1 (diff) |
hdparm: fix compilation with musl
Signed-off-by: Richard Kunze <richard.kunze@web.de>
Diffstat (limited to 'utils/hdparm/patches')
-rw-r--r-- | utils/hdparm/patches/001-fix-includes.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/hdparm/patches/001-fix-includes.patch b/utils/hdparm/patches/001-fix-includes.patch new file mode 100644 index 000000000..44343fb39 --- /dev/null +++ b/utils/hdparm/patches/001-fix-includes.patch @@ -0,0 +1,20 @@ +--- a/hdparm.h ++++ b/hdparm.h +@@ -2,6 +2,7 @@ + + //#undef __KERNEL_STRICT_NAMES + #include <linux/types.h> ++#include <sys/types.h> + + #if !defined(__GNUC__) && !defined(__attribute__) + #define __attribute__(x) +--- a/sysfs.c ++++ b/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> |