src/thread/pthread/SDL_syssem.c
changeset 1487 dc6b59e925a2
parent 1402 d910939febfa
child 1627 aee7ea396f59
equal deleted inserted replaced
1486:9d77fc9d0ace 1487:dc6b59e925a2
    29 
    29 
    30 /* Wrapper around POSIX 1003.1b semaphores */
    30 /* Wrapper around POSIX 1003.1b semaphores */
    31 
    31 
    32 #ifdef __MACOSX__
    32 #ifdef __MACOSX__
    33 #define USE_NAMED_SEMAPHORES 1
    33 #define USE_NAMED_SEMAPHORES 1
       
    34 #include <unistd.h>
    34 #endif
    35 #endif
    35 
    36 
    36 struct SDL_semaphore {
    37 struct SDL_semaphore {
    37 	sem_t *sem;
    38 	sem_t *sem;
    38 #if !USE_NAMED_SEMAPHORES
    39 #if !USE_NAMED_SEMAPHORES