mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
net-snmp: fix musl compatibility
Fixup `iwlib.h` to not consider an musl environment to be an unsupported platform. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
14
net/net-snmp/patches/900-musl-compat.patch
Normal file
14
net/net-snmp/patches/900-musl-compat.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/agent/mibgroup/iwlib.h
|
||||
+++ b/agent/mibgroup/iwlib.h
|
||||
@@ -85,6 +85,11 @@
|
||||
&& LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)
|
||||
#define LIBC5_HEADERS
|
||||
|
||||
+/* Musl */
|
||||
+#elif !defined(__GLIBC__) && !defined(__UCLIBC__) \
|
||||
+ && LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
|
||||
+#define GENERIC_HEADERS
|
||||
+
|
||||
/* Unsupported combination */
|
||||
#else
|
||||
#error "Your kernel/libc combination is not supported"
|
||||
Reference in New Issue
Block a user