]> Savannah Git Hosting - gnulib.git/commitdiff
Fix some more link errors with --enable-threads=isoc.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Dec 2019 02:49:30 +0000 (03:49 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Dec 2019 03:55:38 +0000 (04:55 +0100)
* modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
* modules/pthread-rwlock (Depends-on): Likewise.

ChangeLog
modules/pthread-mutex
modules/pthread-rwlock

index 159f32c3b5c040e4a6c83543a90a60c21899118a..7fc89a62d138d1150ce6f1263dd1d962a1c1d846 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-02  Bruno Haible  <bruno@clisp.org>
+
+       Fix some more link errors with --enable-threads=isoc.
+       * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
+       * modules/pthread-rwlock (Depends-on): Likewise.
+
 2019-12-02  Bruno Haible  <bruno@clisp.org>
 
        Fix link errors with --enable-threads=posix on AIX.
index 556ffa8f23c05cd1a2f14da860068f7ed39974fd..9fdd2fecbf7243b1534336a5543c3a018df1eda8 100644 (file)
@@ -7,7 +7,7 @@ m4/pthread-mutex.m4
 
 Depends-on:
 pthread-h
-pthread_mutex_timedlock [test $gl_threads_api = posix]
+pthread_mutex_timedlock [test $gl_threads_api != windows]
 windows-timedmutex      [test $gl_threads_api = windows]
 windows-timedrecmutex   [test $gl_threads_api = windows]
 
index e9354149aae22e1d81ce7640f0843af62d892c59..4944edd81f40d036cc93d08d106e05891bae2ef1 100644 (file)
@@ -7,8 +7,8 @@ m4/pthread-rwlock.m4
 
 Depends-on:
 pthread-h
-pthread-cond        [test $gl_threads_api = posix && test $REPLACE_PTHREAD_RWLOCK_INIT = 1]
-nanosleep           [test $gl_threads_api = posix && test $HAVE_PTHREAD_RWLOCK_INIT = 1 && test $HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK = 0]
+pthread-cond        [test $gl_threads_api != windows && test $REPLACE_PTHREAD_RWLOCK_INIT = 1]
+nanosleep           [test $gl_threads_api != windows && test $HAVE_PTHREAD_RWLOCK_INIT = 1 && test $HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK = 0]
 windows-timedrwlock [test $gl_threads_api = windows]
 
 configure.ac: