Browse Source

Added missing include to os.h for osx

pthread.h is needed
Alex Berghage 12 years ago
parent
commit
0d16300ea2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/bx/os.h

+ 3 - 0
include/bx/os.h

@@ -12,6 +12,9 @@
 #	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
+#		include <pthread.h> // mach_port_t
+#	endif
 #	if BX_PLATFORM_NACL
 #		include <sys/nacl_syscalls.h> // nanosleep
 #	else