]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Fix name resolution failures on kLIBC
authorKO Myung-Hun <komh78@gmail.com>
Sun, 8 Nov 2015 05:58:00 +0000 (14:58 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 10 Dec 2015 03:45:20 +0000 (12:45 +0900)
kLIBC already has _nl_default_dirname and _nl_msg_cat_cntr in its own
gettext implmenetation.
* gettext-runtime/intl/dcigettext.c: Do not declare _nl_default_dirname
on kLIBC.
* gettext-runtime/intl/gettextP.h: Define _nl_msg_cat_cntr to
libintl_nl_msg_cat_cntr on kLIBC.

Copyright-paperwork-exempt: yes

gettext-runtime/intl/dcigettext.c
gettext-runtime/intl/gettextP.h

index 8a3f091497ad2eaebb23d77d8186b46d1460d32f..c0faf18669f40d7302909af5b84cf3790e3454e1 100644 (file)
@@ -323,7 +323,7 @@ const char *_nl_current_default_domain attribute_hidden
 #endif
 
 /* Contains the default location of the message catalogs.  */
-#if defined __EMX__
+#if defined __EMX__ && !defined __KLIBC__
 extern const char _nl_default_dirname[];
 #else
 # ifdef _LIBC
index bbd213988b92661ee170a54323edc94e113adc8e..f3a9ded82c05b87481eaa59e3673950881ea5306 100644 (file)
@@ -219,6 +219,9 @@ struct binding
 /* A counter which is incremented each time some previous translations
    become invalid.
    This variable is part of the external ABI of the GNU libintl.  */
+#if defined __KLIBC__ && !defined _LIBC
+# define _nl_msg_cat_cntr libintl_nl_msg_cat_cntr
+#endif
 #ifdef IN_LIBGLOCALE
 # include <glocale/config.h>
 extern LIBGLOCALE_DLL_EXPORTED int _nl_msg_cat_cntr;