Do not include sys/sysctl.h on Android (#635)

Android has linux/sysctl.h, but the functions that need it are not
used when targeting Android at the moment.
This commit is contained in:
James Price
2020-02-28 03:38:52 -05:00
committed by GitHub
parent 9016bb20f3
commit 5f77d763ea

View File

@@ -31,10 +31,13 @@
#if !defined(_WIN32) #if !defined(_WIN32)
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/sysctl.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
#if !defined(_WIN32) && !defined(__ANDROID__)
#include <sys/sysctl.h>
#endif
#include <time.h> #include <time.h>
#if !defined (__APPLE__) #if !defined (__APPLE__)