Fix building without threads (pthreads).

Note: 'configure --disable-threads' or 'cmake -DOPTION_USE_THREADS=OFF'.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2016-12-06 18:49:22 +00:00
parent b3c97970f3
commit da816dff5d

View File

@ -401,13 +401,16 @@ void lock_ring() {
pthread_mutex_lock(ring_mutex);
}
#else
#else // ! HAVE_PTHREAD
void Fl_Posix_System_Driver::awake(void*) {}
int Fl_Posix_System_Driver::lock() { return 1; }
void Fl_Posix_System_Driver::unlock() {}
void* Fl_Posix_System_Driver::thread_message() { return NULL; }
void lock_ring() {}
void unlock_ring() {}
#endif // HAVE_PTHREAD