Closed mjeveritt closed 1 year ago
Well for me at least, i just coped the sysctl.h from /usr/include/linux/sysctl.h and pasted to /usr/include/x86_64-linux-gnu/sys/ and worked try that.
Yup, this happened to me too, latest version of arch. Copying /usr/include/linux/sysctl.h to /usr/include/sys/sysctl.h is what worked since I don't have a x86_64-linux-gnu folder. I read a comment somewhere suggesting sysctl was deprecated and was removed from glibc-2.32. Thanks for the suggestion.
fixed
Musl libc doesn't provide a separate sys/sysctl.h. Use linux/sysctl.h directly instead.
See https://bugs.gentoo.org/show_bug.cgi?id=717134 .