From: Bruno Haible Date: Sat, 30 Sep 2023 12:38:49 +0000 (+0200) Subject: intl: Merge from glibc. X-Git-Tag: v0.23~365 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15fa201726414fc9c0434495a367a631f8c5a237;p=thirdparty%2Fgettext.git intl: Merge from glibc. Apply commit 2015-09-08 Joseph Myers Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). --- diff --git a/gettext-runtime/intl/bindtextdom.c b/gettext-runtime/intl/bindtextdom.c index 3c64cc193..0b35c8e33 100644 --- a/gettext-runtime/intl/bindtextdom.c +++ b/gettext-runtime/intl/bindtextdom.c @@ -31,7 +31,7 @@ /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock diff --git a/gettext-runtime/intl/dcigettext.c b/gettext-runtime/intl/dcigettext.c index 0be23e194..99bbe4b3e 100644 --- a/gettext-runtime/intl/dcigettext.c +++ b/gettext-runtime/intl/dcigettext.c @@ -104,7 +104,7 @@ extern int errno; /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock diff --git a/gettext-runtime/intl/finddomain.c b/gettext-runtime/intl/finddomain.c index 59352b5d2..9aff02d4a 100644 --- a/gettext-runtime/intl/finddomain.c +++ b/gettext-runtime/intl/finddomain.c @@ -37,7 +37,7 @@ /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock diff --git a/gettext-runtime/intl/gettextP.h b/gettext-runtime/intl/gettextP.h index 1f875069a..58576ff4c 100644 --- a/gettext-runtime/intl/gettextP.h +++ b/gettext-runtime/intl/gettextP.h @@ -30,7 +30,7 @@ /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include # define gl_rwlock_define __libc_rwlock_define #else # include "glthread/lock.h" diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c index 5ca9d6e44..999d92760 100644 --- a/gettext-runtime/intl/loadmsgcat.c +++ b/gettext-runtime/intl/loadmsgcat.c @@ -1,5 +1,5 @@ /* Load needed message catalogs. - Copyright (C) 1995-2021 Free Software Foundation, Inc. + Copyright (C) 1995-2023 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -97,7 +97,7 @@ char *alloca (); /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include #else # include "glthread/lock.h" #endif diff --git a/gettext-runtime/intl/localealias.c b/gettext-runtime/intl/localealias.c index df3238880..18c204a33 100644 --- a/gettext-runtime/intl/localealias.c +++ b/gettext-runtime/intl/localealias.c @@ -102,7 +102,7 @@ char *alloca (); /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include #else # include "glthread/lock.h" #endif diff --git a/gettext-runtime/intl/log.c b/gettext-runtime/intl/log.c index ae0e22835..9b153adde 100644 --- a/gettext-runtime/intl/log.c +++ b/gettext-runtime/intl/log.c @@ -1,5 +1,5 @@ /* Log file output. - Copyright (C) 2003, 2005, 2009, 2021, 2023 Free Software Foundation, Inc. + Copyright (C) 2003-2023 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -29,7 +29,7 @@ /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include #else # include "glthread/lock.h" #endif diff --git a/gettext-runtime/intl/textdomain.c b/gettext-runtime/intl/textdomain.c index 7e1569fc1..6db0f7227 100644 --- a/gettext-runtime/intl/textdomain.c +++ b/gettext-runtime/intl/textdomain.c @@ -1,5 +1,5 @@ /* Implementation of the textdomain(3) function. - Copyright (C) 1995-2015, 2021 Free Software Foundation, Inc. + Copyright (C) 1995-2023 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -30,7 +30,7 @@ /* Handle multi-threaded applications. */ #ifdef _LIBC -# include +# include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock