]> Savannah Git Hosting - gnulib.git/commitdiff
pthread-mutex, pthread-rwlock: Fix a compilation error.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Jun 2024 10:30:32 +0000 (12:30 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 23:20:40 +0000 (01:20 +0200)
* modules/pthread-mutex-tests (Files): Add m4/semaphore.m4.
(configure.ac): Check for semaphore.h. Require gl_SEMAPHORE.
* modules/pthread-rwlock-tests (Files): Add m4/semaphore.m4.
(configure.ac): Check for semaphore.h. Require gl_SEMAPHORE.

ChangeLog
modules/pthread-mutex-tests
modules/pthread-rwlock-tests

index c379de20a3c9e0fde1fcff613e23632e4223ca4b..0380cf7bcb1bb6f7ea731e5b648e574a58ed75eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-06-03  Bruno Haible  <bruno@clisp.org>
+
+       pthread-mutex, pthread-rwlock: Fix a compilation error.
+       * modules/pthread-mutex-tests (Files): Add m4/semaphore.m4.
+       (configure.ac): Check for semaphore.h. Require gl_SEMAPHORE.
+       * modules/pthread-rwlock-tests (Files): Add m4/semaphore.m4.
+       (configure.ac): Check for semaphore.h. Require gl_SEMAPHORE.
+
 2024-06-02  Bruno Haible  <bruno@clisp.org>
 
        c-strtod, c-strtof, c-strtold: Fix link error on AIX.
index 9475a84a99b93b736282feb12d5b72d8a9b75e89..cc234afc77d1c4b969a829a91338d7ec03c25b01 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-pthread-mutex.c
 tests/atomic-int-posix.h
 tests/macros.h
+m4/semaphore.m4
 
 Depends-on:
 pthread-thread
@@ -9,6 +10,8 @@ sched_yield
 random
 
 configure.ac:
+AC_CHECK_HEADERS_ONCE([semaphore.h])
+AC_REQUIRE([gl_SEMAPHORE])
 
 Makefile.am:
 TESTS += test-pthread-mutex
index 129570b67d83b3e0d725c251db3cdb10c086455e..b63a26787687eb3596ea0131415830e84f158f55 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-pthread-rwlock.c
 tests/atomic-int-posix.h
 tests/macros.h
+m4/semaphore.m4
 
 Depends-on:
 pthread-thread
@@ -10,6 +11,8 @@ sched_yield
 random
 
 configure.ac:
+AC_CHECK_HEADERS_ONCE([semaphore.h])
+AC_REQUIRE([gl_SEMAPHORE])
 
 Makefile.am:
 TESTS += test-pthread-rwlock