From fdde98152234dbd771b47136be40342ca5b8c76c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 26 Jun 2015 17:46:10 +0200 Subject: 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 --- net/net-snmp/patches/900-musl-compat.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/net-snmp/patches/900-musl-compat.patch (limited to 'net/net-snmp/patches') diff --git a/net/net-snmp/patches/900-musl-compat.patch b/net/net-snmp/patches/900-musl-compat.patch new file mode 100644 index 000000000..fa9a01e1b --- /dev/null +++ b/net/net-snmp/patches/900-musl-compat.patch @@ -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" -- cgit v1.2.3