From 409df19b5a0053175f05851086e6ef35c5bce2c0 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 9 Sep 2019 11:55:33 -0400 Subject: build: The is now deprecated on Linux Closes #31673 --- src/lib/meminfo/meminfo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/meminfo/meminfo.c b/src/lib/meminfo/meminfo.c index f233188897..f4fa45167e 100644 --- a/src/lib/meminfo/meminfo.c +++ b/src/lib/meminfo/meminfo.c @@ -18,9 +18,6 @@ #include "lib/log/log.h" #include "lib/malloc/malloc.h" -#ifdef HAVE_SYS_SYSCTL_H -#include -#endif #ifdef HAVE_FCNTL_H #include #endif @@ -36,6 +33,10 @@ #endif #include +#if defined(HAVE_SYS_SYSCTL_H) && !defined(_WIN32) && !defined(__linux__) +#include +#endif + DISABLE_GCC_WARNING(aggregate-return) /** Call the platform malloc info function, and dump the results to the log at * level severity. If no such function exists, do nothing. */ -- cgit v1.2.3-54-g00ecf