Browse Source

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>
lilik-openwrt-22.03
Rosen Penev 3 years ago
committed by Stijn Tintel
parent
commit
2661d615db
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      net/net-snmp/patches/900-musl-compat.patch

+ 2
- 3
net/net-snmp/patches/900-musl-compat.patch 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 */


Loading…
Cancel
Save