sysstat: fix musl compatibility
[feed/packages.git] / utils / hdparm / patches / 001-fix-includes.patch
1 --- a/hdparm.h
2 +++ b/hdparm.h
3 @@ -2,6 +2,7 @@
4
5 //#undef __KERNEL_STRICT_NAMES
6 #include <linux/types.h>
7 +#include <sys/types.h>
8
9 #if !defined(__GNUC__) && !defined(__attribute__)
10 #define __attribute__(x)
11 --- a/sysfs.c
12 +++ b/sysfs.c
13 @@ -12,6 +12,7 @@
14 #include <stdio.h>
15 #include <fcntl.h>
16 #include <errno.h>
17 +#include <limits.h>
18 #include <dirent.h>
19 #include <sys/stat.h>
20 #include <linux/types.h>