2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Add an explicit check for sys/sysctl.h.

This test needs to be done after AC_LANG_WERROR to avoid including
sys/sysctl.h on systems where it is marked as deprecated via a
#warning directive.
This commit is contained in:
Todd C. Miller
2021-10-20 10:31:35 -06:00
parent 00e53b32e5
commit 23eef895f4
5 changed files with 19 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
#ifdef HAVE_SYSCTL
#ifdef HAVE_SYS_SYSCTL_H
# include <sys/sysctl.h>
#endif
#ifdef HAVE_SYS_STATVFS_H