From 744e829637162bb7d5029632aacf341c64b86990 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 12 Jun 2019 14:32:08 +0200 Subject: Linux: Deprecate and sysctl Now that there are no internal users of __sysctl left, it is possible to add an unconditional deprecation warning to . To avoid a test failure due this warning in check-install-headers, skip the test for sys/sysctl.h. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/sysctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sysctl.c') diff --git a/sysdeps/unix/sysv/linux/sysctl.c b/sysdeps/unix/sysv/linux/sysctl.c index 33afdd918b..0f18c69abe 100644 --- a/sysdeps/unix/sysv/linux/sysctl.c +++ b/sysdeps/unix/sysv/linux/sysctl.c @@ -17,8 +17,7 @@ . */ #include -#include /* For the real memset prototype. */ -#include +#include #include #include @@ -39,5 +38,4 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp, return INLINE_SYSCALL (_sysctl, 1, &args); } -libc_hidden_def (__sysctl) weak_alias (__sysctl, sysctl) -- cgit v1.2.1