sys/sysctl.h has been removed at glibc 2.32, so this header should
not used anymore, however sysctl still invoked at memstats_memtotal,
but only for invoked when APPLE_CC is defined.
So moving #include <sys/sysctl.h> into #ifdef __APPLE_CC__.
Differential D99930
[test-suite] Fix CLAMR build with glibc 2.32+ kito-cheng on Apr 6 2021, 1:47 AM. Authored by
Details
sys/sysctl.h has been removed at glibc 2.32, so this header should So moving #include <sys/sysctl.h> into #ifdef __APPLE_CC__.
Diff Detail
Event TimelineComment Actions News of Glibc 2.32: * The deprecated <sys/sysctl.h> header and the sysctl function have been removed. To support old binaries, the sysctl function continues to exist as a compatibility symbol (on those architectures which had it), but always fails with ENOSYS. This reflects the removal of the system call from all architectures, starting with Linux 5.5. |