From 88e4ffa26f09a8911ec34d9b1f1349bb138c7ccf Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 4 Aug 2024 23:56:07 +0200 Subject: [PATCH] strsignal: Reduce dependencies. * lib/strsignal.c: Include glthread/once.h instead of glthread/lock.h. * modules/strsignal (Depends-on): Add once. Remove lock. --- ChangeLog | 6 ++++++ lib/strsignal.c | 2 +- modules/strsignal | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 45027a1c76..59d8c7f567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-08-04 Bruno Haible + + strsignal: Reduce dependencies. + * lib/strsignal.c: Include glthread/once.h instead of glthread/lock.h. + * modules/strsignal (Depends-on): Add once. Remove lock. + 2024-08-04 Bruno Haible immutable: Clarify dependencies. diff --git a/lib/strsignal.c b/lib/strsignal.c index dc7415bf32..6f4085dd4b 100644 --- a/lib/strsignal.c +++ b/lib/strsignal.c @@ -37,7 +37,7 @@ #ifdef _LIBC # include #else /* !_LIBC */ -# include "glthread/lock.h" +# include "glthread/once.h" # include "glthread/tls.h" # define __libc_once_define(CLASS, NAME) gl_once_define (CLASS, NAME) # define __libc_once(NAME, INIT) gl_once ((NAME), (INIT)) diff --git a/modules/strsignal b/modules/strsignal index 50a9484115..a11f853086 100644 --- a/modules/strsignal +++ b/modules/strsignal @@ -10,7 +10,7 @@ Depends-on: string extensions gettext-h [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] -lock [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] +once [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] tls [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] snprintf [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] memset [test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1] -- 2.39.5