]> Savannah Git Hosting - gnulib.git/commitdiff
strsignal: Reduce dependencies.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:56:07 +0000 (23:56 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:56:07 +0000 (23:56 +0200)
* lib/strsignal.c: Include glthread/once.h instead of glthread/lock.h.
* modules/strsignal (Depends-on): Add once. Remove lock.

ChangeLog
lib/strsignal.c
modules/strsignal

index 45027a1c76e2b4310f37f0a8af8f6f0ecb9ee49e..59d8c7f5678c5a7be62536486824b85ea7b85e05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        immutable: Clarify dependencies.
index dc7415bf3218752df8ddaf023a6af59de0368776..6f4085dd4bc2f5ffa29c5294ed1b99bf3f47e675 100644 (file)
@@ -37,7 +37,7 @@
 #ifdef _LIBC
 # include <bits/libc-lock.h>
 #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))
index 50a9484115db37e02c1d1e2477f24e49fe1f710e..a11f8530861e5ec4acd76d4b434f783bf7f5401d 100644 (file)
@@ -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]