[PATCH 3/4] i18n.c: _nl_msg_cat_cntr is an internal symbol of some intl implementation
Bernd Kuhls <[email protected]> Tue, 16 May 2023 20:25:16 +0200
| Newsgroups | gmane.linux.vdr |
|---|---|
| Message-ID | <[email protected]> |
From: Thomas Petazzoni <[email protected]> It is supported by glibc and uClibc (which both define __GLIBC__) but not musl (which doesn't define __GLIBC__). On musl, it doesn't do anything because musl has a basic NLS implementation. Even gettext-tiny defines _nl_msg_cat_cntr as a dummy symbol in its stub libintl-musl implementation. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Bernd Kuhls <[email protected]> --- i18n.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i18n.c b/i18n.c index d77e82c1..e4bc54f2 100644 --- a/i18n.c +++ b/i18n.c @@ -124,8 +124,10 @@ static const char *SkipContext(const char *s) static void SetEnvLanguage(const char *Locale) { setenv("LANGUAGE", Locale, 1); +#if defined(__GLIBC__) extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; +#endif } static void SetLanguageNames(void) -- 2.39.2 _______________________________________________ vdr mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr