This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
hdparm: fix compilation with musl
Signed-off-by: Richard Kunze <richard.kunze@web.de>
lilik-openwrt-22.03
Richard Kunze
10 years ago
parent
18d534ba40
commit
feb67e6b07
2 changed files
with
22 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
utils/hdparm/Makefile
+20
-0
utils/hdparm/patches/001-fix-includes.patch
+ 2
- 0
utils/hdparm/Makefile
View File
@ -19,6 +19,8 @@ PKG_LICENSE:=BSD-Style Open Source License
i
n
c
l
u
d
e
$(
INCLUDE_DIR
)
/
p
a
c
k
a
g
e
.
m
k
TARGET_CFLAGS
+=
-D_GNU_SOURCE
d
e
f
i
n
e
P
a
c
k
a
g
e
/
h
d
p
a
r
m
SECTION:
=
utils
CATEGORY:
=
Utilities
+ 20
- 0
utils/hdparm/patches/001-fix-includes.patch
View File
@ -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>
Write
Preview
Loading…
Cancel
Save