xref: /OK3568_Linux_fs/buildroot/package/lua-lunix/0003-fix-sysctl-detection.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1sys/sysctl.h was removed with glibc 2.32
2
3Fetched from: https://github.com/wahern/lunix/pull/20/files
4Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
5---
6 lunix-rel-20170920/src/unix.c | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9diff --git a/lunix-rel-20170920/src/unix.c b/lunix-rel-20170920/src/unix.c
10index 272820a..fa00876 100644
11--- a/lunix-rel-20170920/src/unix.c
12+++ b/lunix-rel-20170920/src/unix.c
13@@ -165,7 +165,7 @@
14 #endif
15
16 #ifndef HAVE_SYS_SYSCTL_H /* missing on musl libc */
17-#define HAVE_SYS_SYSCTL_H (defined BSD || GLIBC_PREREQ(0,0) || UCLIBC_PREREQ(0,0,0))
18+#define HAVE_SYS_SYSCTL_H (defined BSD || (__GLIBC__ && !GLIBC_PREREQ(2,32)) || UCLIBC_PREREQ(0,0,0))
19 #endif
20
21 #ifndef HAVE_STRUCT_IN_PKTINFO
22--
232.30.2
24
25