about summary refs log tree commit diff
path: root/intl/textdomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'intl/textdomain.c')
-rw-r--r--intl/textdomain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/intl/textdomain.c b/intl/textdomain.c
index 2a4b67c564..fe9f171815 100644
--- a/intl/textdomain.c
+++ b/intl/textdomain.c
@@ -51,6 +51,14 @@
 # define __libc_rwlock_unlock(NAME)
 #endif
 
+/* The internal variables in the standalone libintl.a must have different
+   names than the internal variables in GNU libc, otherwise programs
+   using libintl.a cannot be linked statically.  */
+#if !defined _LIBC
+# define _nl_default_default_domain _nl_default_default_domain__
+# define _nl_current_default_domain _nl_current_default_domain__
+#endif
+
 /* @@ end of prolog @@ */
 
 /* Name of the default text domain.  */