From c8c3bf1d533a81cb8ed4b0b5ca327391fc096b5c Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sun, 4 Aug 2024 23:56:10 +0200
Subject: [PATCH] uchar-c23: Reduce dependencies.

* lib/lc-charset-unicode.c: Include glthread/once.h instead of
glthread/lock.h.
* modules/uchar-c23 (Depends-on): Add once. Remove lock.
---
 ChangeLog                | 7 +++++++
 lib/lc-charset-unicode.c | 2 +-
 modules/uchar-c23        | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 59d8c7f567..7742247adf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-04  Bruno Haible  <bruno@clisp.org>
+
+	uchar-c23: Reduce dependencies.
+	* lib/lc-charset-unicode.c: Include glthread/once.h instead of
+	glthread/lock.h.
+	* modules/uchar-c23 (Depends-on): Add once. Remove lock.
+
 2024-08-04  Bruno Haible  <bruno@clisp.org>
 
 	strsignal: Reduce dependencies.
diff --git a/lib/lc-charset-unicode.c b/lib/lc-charset-unicode.c
index 4558f9288e..30df0b9ab3 100644
--- a/lib/lc-charset-unicode.c
+++ b/lib/lc-charset-unicode.c
@@ -36,7 +36,7 @@
 
 # include "localcharset.h"
 # include "streq.h"
-# include "glthread/lock.h"
+# include "glthread/once.h"
 # include "glthread/tls.h"
 # include "unistr.h"
 
diff --git a/modules/uchar-c23 b/modules/uchar-c23
index 5fcd2802bf..06d920bf5f 100644
--- a/modules/uchar-c23
+++ b/modules/uchar-c23
@@ -11,7 +11,7 @@ wchar
 iconv
 localcharset
 streq
-lock
+once
 tls
 mbszero
 wcrtomb
-- 
2.39.5