Skip to contentSkip to conversation

package/lua-lunix: fix sys/sysctl.h detection

Buildroot Arnout Vandecappelle (Essensium/Mind) 1 participant 1 message Aug 26, 2021

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=8ead0594060dde5ae92653c9937a4160baf28d85
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

sysctl.h has been removed from glibc since version 2.32.

---
 package/lua-lunix/0003-fix-sysctl-detection.patch | 24 +++++++++++++++++++++++
 1 file changed, 24 insertions(+)
package/lua-lunix/0003-fix-sysctl-detection.patch new file +24 -0
new file mode 100644
index 0000000000..18656b1921
@@ -0,0 +1,24 @@
+sys/sysctl.h was removed with glibc 2.32
+
+Fetched from: https://github.com/wahern/lunix/pull/20/files
+Signed-off-by: Francois Perrad <[email protected]>
+---
+ lunix-rel-20170920/src/unix.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lunix-rel-20170920/src/unix.c b/lunix-rel-20170920/src/unix.c
+index 272820a..fa00876 100644
+--- a/lunix-rel-20170920/src/unix.c
++++ b/lunix-rel-20170920/src/unix.c
+@@ -165,7 +165,7 @@
+ #endif
+ 
+ #ifndef HAVE_SYS_SYSCTL_H /* missing on musl libc */
+-#define HAVE_SYS_SYSCTL_H (defined BSD || GLIBC_PREREQ(0,0) || UCLIBC_PREREQ(0,0,0))
++#define HAVE_SYS_SYSCTL_H (defined BSD || (__GLIBC__ && !GLIBC_PREREQ(2,32)) || UCLIBC_PREREQ(0,0,0))
+ #endif
+ 
+ #ifndef HAVE_STRUCT_IN_PKTINFO
+-- 
+2.30.2
+

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot