]> Savannah Git Hosting - gnulib.git/commitdiff
lock: Fix link error with --enable-threads=pth.
authorBruno Haible <bruno@clisp.org>
Sat, 5 Jan 2019 01:37:39 +0000 (02:37 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 5 Jan 2019 01:37:39 +0000 (02:37 +0100)
* lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
Mark as weak.

ChangeLog
lib/glthread/lock.h

index 2844009e1579f4d70271b5c8eecd22b409a61c40..a64b7b721ab19bce1221b46cf65c8977a01447e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-01-04  Bruno Haible  <bruno@clisp.org>
+
+       lock: Fix link error with --enable-threads=pth.
+       * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
+       Mark as weak.
+
 2019-01-04  Bruno Haible  <bruno@clisp.org>
 
        Fix link errors in unit tests.
index c0fa53e2266c3559d4e15636fe58c7dc69a75841..6e1fdf8c6228f435a54f6e36802af4d6eb37b697 100644 (file)
@@ -416,6 +416,9 @@ extern "C" {
 #  pragma weak pth_rwlock_acquire
 #  pragma weak pth_rwlock_release
 #  pragma weak pth_once
+#  pragma weak pth_cond_init
+#  pragma weak pth_cond_await
+#  pragma weak pth_cond_notify
 
 #  pragma weak pth_cancel
 #  define pth_in_use() (pth_cancel != NULL)