sysctl() is used only on MACOS and sysctl.h has been removed from GLIBC

parent 4abb4c26
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
#else #else
#include <sys/param.h> #include <sys/param.h>
#if (!defined __ANDROID__) #if (!defined __ANDROID__)
#if MACOS
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif
#include <ifaddrs.h> #include <ifaddrs.h>
#endif /* (!defined __ANDROID__) */ #endif /* (!defined __ANDROID__) */
#include <sys/socket.h> #include <sys/socket.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment