# HG changeset patch # User Holmes Futrell # Date 1215736504 0 # Node ID 375f9132da7f4499e2773a97fdc08f753083521e # Parent 976898ed43e1670f29df2e08d2b3efc774914d1f Just modified the macro so that iPhone will use the Mac OS X code here diff -r 976898ed43e1 -r 375f9132da7f src/thread/pthread/SDL_syssem.c --- a/src/thread/pthread/SDL_syssem.c Fri Jul 11 00:32:38 2008 +0000 +++ b/src/thread/pthread/SDL_syssem.c Fri Jul 11 00:35:04 2008 +0000 @@ -29,7 +29,7 @@ /* Wrapper around POSIX 1003.1b semaphores */ -#ifdef __MACOSX__ +#if defined(__MACOSX__) || defined(__IPHONEOS__) /* Mac OS X doesn't support sem_getvalue() as of version 10.4 */ #include "../generic/SDL_syssem.c" #else