From 5fb814c0e8f92f6b0ad65beb6a5c82c04b92865a Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 13 Aug 2021 16:40:25 +0200 Subject: [PATCH] sys/sysctl.h was removed with glibc 2.32 --- src/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix.c b/src/unix.c index 272820a..fa00876 100644 --- a/src/unix.c +++ b/src/unix.c @@ -218,7 +218,7 @@ #endif #ifndef HAVE_SYS_SYSCTL_H /* missing on musl libc */ -#define HAVE_SYS_SYSCTL_H (BSD || GLIBC_PREREQ(0,0) || UCLIBC_PREREQ(0,0,0)) +#define HAVE_SYS_SYSCTL_H (BSD || (__GLIBC__ && !GLIBC_PREREQ(2,32)) || UCLIBC_PREREQ(0,0,0)) #endif #ifndef HAVE_STRUCT_IN_PKTINFO