mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
hdparm: fix compilation with musl
Signed-off-by: Richard Kunze <richard.kunze@web.de>
This commit is contained in:
@@ -19,6 +19,8 @@ PKG_LICENSE:=BSD-Style Open Source License
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
TARGET_CFLAGS+=-D_GNU_SOURCE
|
||||||
|
|
||||||
define Package/hdparm
|
define Package/hdparm
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user