Fix mac build (I hope).

shapetextures
Sven Eberhardt 2015-09-29 21:31:13 -04:00
parent 737b1fd8fd
commit fc7d16b2aa
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -40,6 +40,9 @@ struct pollfd;
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif // HAVE_PTHREAD
#ifdef __APPLE__
#include <sched.h>
#endif
#endif // _WIN32