In a mingw build of a testdir of 'asyncsafe-spin' and some other modules,
I see a crash of test-pthread-once2.

The cause is that this test program uses the pthread_rwlock_* functions
from the winpthreads library, which is known to be broken.

This patch fixes it.


2024-05-29  Bruno Haible  <br...@clisp.org>

        pthread-once tests: Fix crash on mingw.
        * modules/pthread-once-tests (Depends-on): Add pthread-rwlock.

diff --git a/modules/pthread-once-tests b/modules/pthread-once-tests
index fc89cbcfcf..9df34462f0 100644
--- a/modules/pthread-once-tests
+++ b/modules/pthread-once-tests
@@ -6,6 +6,7 @@ tests/macros.h
 Depends-on:
 pthread-thread
 pthread-mutex
+pthread-rwlock
 sched_yield
 
 configure.ac:




Reply via email to