From: Bruno Haible <bruno@clisp.org>
Date: Wed, 29 May 2024 10:06:46 +0000 (+0200)
Subject: lock: Work around Cygwin 3.5.3 bug.
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fe8c6dc6f4d18867de9800c7c4046c169cc20245;p=gnulib.git

lock: Work around Cygwin 3.5.3 bug.

* modules/lock (Depends-on): Add pthread-once.
---

diff --git a/ChangeLog b/ChangeLog
index 87e25ab81e..0baa9c7615 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2024-05-29  Bruno Haible  <bruno@clisp.org>
+
+	lock: Work around Cygwin 3.5.3 bug.
+	* modules/lock (Depends-on): Add pthread-once.
+
 2024-05-29  Collin Funk  <collin.funk1@gmail.com>
 
-	gnulib-tool.py: Don't emit non-ASCII shell output.
+	gnulib-tool.py: Don't emit non-ASCII shell output (regr. yesterday).
 	Reported by Bruno Haible in
 	<https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00441.html>.
 	* pygnulib/GLModuleSystem.py (GLModule.shell_id_chars): Use the re.ASCII
diff --git a/modules/lock b/modules/lock
index c9d60d695c..2452524987 100644
--- a/modules/lock
+++ b/modules/lock
@@ -10,6 +10,7 @@ m4/pthread_rwlock_rdlock.m4
 Depends-on:
 extensions
 threadlib
+pthread-once     [test $gl_threads_api = posix]
 windows-mutex    [test $gl_threads_api = windows]
 windows-rwlock   [test $gl_threads_api = windows]
 windows-recmutex [test $gl_threads_api = windows]