summaryrefslogtreecommitdiffstats
path: root/intl/bindtextdom.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2000-09-18 20:24:33 +0000
committerBruno Haible <bruno@clisp.org>2000-09-18 20:24:33 +0000
commitfe80be5455940b3ab25b9f958d02840d256767a4 (patch)
tree51f6f755e3652edaeb77a7a2cc858c81b26fe2ad /intl/bindtextdom.c
parent75cbb08e616b1d6e7d2a412997f291c6cd2dffc0 (diff)
downloadexternal_gettext-fe80be5455940b3ab25b9f958d02840d256767a4.zip
external_gettext-fe80be5455940b3ab25b9f958d02840d256767a4.tar.gz
external_gettext-fe80be5455940b3ab25b9f958d02840d256767a4.tar.bz2
Fix a link error when linking statically with glibc.
Diffstat (limited to 'intl/bindtextdom.c')
-rw-r--r--intl/bindtextdom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/intl/bindtextdom.c b/intl/bindtextdom.c
index 156c8f0..f921177 100644
--- a/intl/bindtextdom.c
+++ b/intl/bindtextdom.c
@@ -56,6 +56,14 @@ void free ();
# 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_dirname _nl_default_dirname__
+# define _nl_domain_bindings _nl_domain_bindings__
+#endif
+
/* @@ end of prolog @@ */
/* Contains the default location of the message catalogs. */