Only include sys/sysctl.h on for Apple (#916)

glibc deprecated that header in version 2.30, and removed it in 2.32.
This commit is contained in:
Pierre Moreau
2020-08-27 19:31:51 +02:00
committed by GitHub
parent 0ba7cf1369
commit c001dc2d9c
5 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@
#include <memory>
#if ! defined( _WIN32)
#if ! defined( __ANDROID__ )
#if defined(__APPLE__)
#include <sys/sysctl.h>
#endif
#include <unistd.h>