Commit 0d35f5f6 by Anton Danielsson

Only include "sys/sysctl.h" if it is needed.

sys/sysctl.h is not available in the android-ndk.
parent c1e03a4b
......@@ -23,9 +23,11 @@
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/types.h> // this header must be included before 'sys/sysctl.h' to avoid compilation error on FreeBSD
#include <sys/sysctl.h>
#include <sys/time.h>
#include <unistd.h>
#if defined OS_FREEBSD || defined OS_MACOSX
#include <sys/sysctl.h>
#endif
#endif
#include <cerrno>
......
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