--- src/OpenThreads/pthreads/PThread.cpp	2015-04-07 20:01:12.000000000 +0200
+++ src/OpenThreads/pthreads/PThread.cpp	2015-10-31 06:24:45.189319272 +0100
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <sys/time.h>
 #include <sys/resource.h>
-#if !defined ANDROID
+#if defined __GLIBC__ && !defined ANDROID
     #include <sys/unistd.h>
 #endif
 #endif
