[PATCH 3/4] i18n.c: _nl_msg_cat_cntr is an internal symbol of some intl implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx>

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 <thomas.petazzoni@xxxxxxxxxxx>
Signed-off-by: Bernd Kuhls <bernd.kuhls@xxxxxxxxxxx>
---
 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
vdr@xxxxxxxxxxx
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux