]> 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 15:00:02 +0000 (16:00 +0100)
commitae933dec2c7a553f718d1918af11380edc817677
tree61215d5f9b273134cfb0d0a38cc235233ec0d678
parentd0344e2505b84e69b78226fdd9ae09342c8312eb
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

(cherry picked from commit 65a8b53bd06bff2debf1e58ed3168ad89e69c0fa)
lib/isc/unix/meminfo.c
lib/isc/unix/net.c
lib/isc/unix/socket.c