src/thread/pthread/SDL_syssem.c
changeset 2765 f55c87ae336b
parent 2735 204be4fc2726
child 2859 99210400e8b9
equal deleted inserted replaced
2764:4868c0df2e83 2765:f55c87ae336b
    27 #include "SDL_thread.h"
    27 #include "SDL_thread.h"
    28 #include "SDL_timer.h"
    28 #include "SDL_timer.h"
    29 
    29 
    30 /* Wrapper around POSIX 1003.1b semaphores */
    30 /* Wrapper around POSIX 1003.1b semaphores */
    31 
    31 
    32 #ifdef __MACOSX__
    32 #if defined(__MACOSX__) || defined(__IPHONEOS__)
    33 /* Mac OS X doesn't support sem_getvalue() as of version 10.4 */
    33 /* Mac OS X doesn't support sem_getvalue() as of version 10.4 */
    34 #include "../generic/SDL_syssem.c"
    34 #include "../generic/SDL_syssem.c"
    35 #else
    35 #else
    36 
    36 
    37 struct SDL_semaphore
    37 struct SDL_semaphore