diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-17 18:58:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-17 18:58:06 -0400 |
commit | dc41e6a80cc7df8d8f2b3ff91be2da38242c541d (patch) | |
tree | 10bd23dcec306a373ef2f557edafbc158a55b675 /src | |
parent | 2ebe1fcd52778ea2d305331f4283366eb35c9d93 (diff) | |
parent | 409df19b5a0053175f05851086e6ef35c5bce2c0 (diff) | |
download | tor-dc41e6a80cc7df8d8f2b3ff91be2da38242c541d.tar.gz tor-dc41e6a80cc7df8d8f2b3ff91be2da38242c541d.zip |
Merge remote-tracking branch 'tor-github/pr/1307' into maint-0.3.5
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/meminfo/meminfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sys/sysctl.h> -#endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif @@ -36,6 +33,10 @@ #endif #include <string.h> +#if defined(HAVE_SYS_SYSCTL_H) && !defined(_WIN32) && !defined(__linux__) +#include <sys/sysctl.h> +#endif + DISABLE_GCC_WARNING(aggregate-return) /** Call the platform malloc info function, and dump the results to the log at * level <b>severity</b>. If no such function exists, do nothing. */ |