1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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.
This commit is contained in:
Bruno Haible
2024-06-03 12:30:32 +02:00
parent 26d7603143
commit 45c4df2e44
3 changed files with 14 additions and 0 deletions

View File

@@ -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.

View 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

View 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