]> git.ipfire.org Git - thirdparty/bind9.git/commit
Do not use <sys/sysctl.h> on Linux
authorMichał Kępień <michal@isc.org>
Wed, 6 Nov 2019 14:31:47 +0000 (15:31 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 6 Nov 2019 14:32:04 +0000 (15:32 +0100)
commit65a8b53bd06bff2debf1e58ed3168ad89e69c0fa
tree60aa33bff4a268d6719ceefc0121007bead194ac
parent89f874e6ee66b39a162cff7b004cf8300ca49c15
Do not use <sys/sysctl.h> on Linux

glibc 2.30 deprecated the <sys/sysctl.h> header [1].  However, that
header is still used on other Unix-like systems, so only prevent it from
being used on Linux, in order to prevent compiler warnings from being
triggered.

[1] https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html
lib/isc/unix/meminfo.c
lib/isc/unix/net.c
lib/isc/unix/socket.c