Explorar o código

correct for non-glibc systems

mahlemiut %!s(int64=10) %!d(string=hai) anos
pai
achega
e28fd19601
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      include/bx/thread.h

+ 4 - 2
include/bx/thread.h

@@ -8,8 +8,10 @@
 
 #if BX_PLATFORM_POSIX
 #	include <pthread.h>
-	#if !((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)))
-		#include <sys/prctl.h>
+	#if defined(__GLIBC__)
+		#if!((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)))
+			#include <sys/prctl.h>
+		#endif
 	#endif
 #elif BX_PLATFORM_WINRT
 using namespace Platform;