From: Bruno Haible Date: Sat, 5 Jan 2019 01:37:39 +0000 (+0100) Subject: lock: Fix link error with --enable-threads=pth. X-Git-Tag: v1.0~5183 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d271f868a8df9bbec29049d01e056481b7a1a263;p=gnulib.git lock: Fix link error with --enable-threads=pth. * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify): Mark as weak. --- diff --git a/ChangeLog b/ChangeLog index 2844009e15..a64b7b721a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-01-04 Bruno Haible + + 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 Fix link errors in unit tests. diff --git a/lib/glthread/lock.h b/lib/glthread/lock.h index c0fa53e226..6e1fdf8c62 100644 --- a/lib/glthread/lock.h +++ b/lib/glthread/lock.h @@ -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)