소스 검색

correct for non-glibc systems

mahlemiut 10 년 전
부모
커밋
e28fd19601
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      include/bx/thread.h

+ 4 - 2
include/bx/thread.h

@@ -8,8 +8,10 @@
 
 
 #if BX_PLATFORM_POSIX
 #if BX_PLATFORM_POSIX
 #	include <pthread.h>
 #	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
 	#endif
 #elif BX_PLATFORM_WINRT
 #elif BX_PLATFORM_WINRT
 using namespace Platform;
 using namespace Platform;