Browse Source

iOS: Fixed pthread include.

Branimir Karadzic 12 years ago
parent
commit
2330faed36
1 changed files with 5 additions and 2 deletions
  1. 5 2
      include/bx/os.h

+ 5 - 2
include/bx/os.h

@@ -12,19 +12,22 @@
 #	include <windows.h>
 #elif BX_PLATFORM_NACL || BX_PLATFORM_ANDROID || BX_PLATFORM_LINUX || BX_PLATFORM_OSX || BX_PLATFORM_IOS
 #	include <sched.h> // sched_yield
-#	if BX_PLATFORM_OSX || BX_PLATFORM_NACL
+#	if BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_NACL
 #		include <pthread.h> // mach_port_t
-#	endif // BX_PLATFORM_OSX || BX_PLATFORM_NACL
+#	endif // BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_NACL
+
 #	if BX_PLATFORM_NACL
 #		include <sys/nacl_syscalls.h> // nanosleep
 #	else
 #		include <time.h> // nanosleep
 #		include <dlfcn.h> // dlopen, dlclose, dlsym
 #	endif // BX_PLATFORM_NACL
+
 #	if BX_PLATFORM_LINUX
 #		include <unistd.h> // syscall
 #		include <sys/syscall.h>
 #	endif // BX_PLATFORM_LINUX
+
 #	if BX_PLATFORM_ANDROID
 #		include "debug.h" // getTid is not implemented...
 #	endif // BX_PLATFORM_ANDROID