]> 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>
Mon, 3 Jun 2024 10:30:32 +0000 (12:30 +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 e0ed08a9af414df6264b088dcacbdbe86cda5600..ff6a22a11bb3e6b130ea9886512f9a00a2843e7e 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  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Refactor duplicated regular expressions.
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