net-snmp: remove uClibc reference in patch

uClibc is no longer used in OpenWrt. It's pointless anyway. uClibc
defines __GLIBC__.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-08-27 16:34:16 -07:00 committed by Stijn Tintel
parent 9aa6d9b9ac
commit 2661d615db
1 changed files with 2 additions and 3 deletions

View File

@ -1,12 +1,11 @@
--- a/agent/mibgroup/iwlib.h
+++ b/agent/mibgroup/iwlib.h
@@ -85,6 +85,11 @@
@@ -85,6 +85,10 @@
&& 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)
+#elif !defined(__GLIBC__) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
+#define GENERIC_HEADERS
+
/* Unsupported combination */