summaryrefslogtreecommitdiff
path: root/src/Fl_lock.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-12-06 18:49:22 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-12-06 18:49:22 +0000
commitda816dff5d8b5d3b49a19eeeddcdf9e8b80037cd (patch)
tree0729e8782735fe3b1be122b192fb516d6075e0ab /src/Fl_lock.cxx
parentb3c97970f3baba789447098407b513620eae23ef (diff)
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
Diffstat (limited to 'src/Fl_lock.cxx')
-rw-r--r--src/Fl_lock.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_lock.cxx b/src/Fl_lock.cxx
index f8c9266e4..dd6c58cdd 100644
--- a/src/Fl_lock.cxx
+++ b/src/Fl_lock.cxx
@@ -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