From 0c2440ca8b797cfd58a92db1e8bb02debf70de89 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 3 Jun 2024 12:30:32 +0200 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ modules/pthread-mutex-tests | 3 +++ modules/pthread-rwlock-tests | 3 +++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index e6a8837480..9cf965bd48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-06-03 Bruno Haible + + 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 c-strtod, c-strtof, c-strtold: Fix link error on AIX. diff --git a/modules/pthread-mutex-tests b/modules/pthread-mutex-tests index 9475a84a99..cc234afc77 100644 --- a/modules/pthread-mutex-tests +++ b/modules/pthread-mutex-tests @@ -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 diff --git a/modules/pthread-rwlock-tests b/modules/pthread-rwlock-tests index 129570b67d..b63a267876 100644 --- a/modules/pthread-rwlock-tests +++ b/modules/pthread-rwlock-tests @@ -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 -- 2.39.5