forked from Mirrors/openclonk
Fix mac build (I hope).
parent
737b1fd8fd
commit
fc7d16b2aa
|
@ -368,6 +368,8 @@ void CPNGFile::WaitForSaves()
|
|||
first = false;
|
||||
#ifdef HAVE_WINTHREAD
|
||||
Sleep(100);
|
||||
#elif defined (__APPLE__)
|
||||
sched_yield();
|
||||
#elif defined(HAVE_PTHREAD)
|
||||
pthread_yield();
|
||||
#endif
|
||||
|
|
|
@ -40,6 +40,9 @@ struct pollfd;
|
|||
#ifdef HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
#endif // HAVE_PTHREAD
|
||||
#ifdef __APPLE__
|
||||
#include <sched.h>
|
||||
#endif
|
||||
#endif // _WIN32
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue