aboutsummaryrefslogtreecommitdiff
path: root/intl/bindtextdom.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2001-11-29 03:38:59 +0000
committerBen Elliston <bje@au.ibm.com>2001-11-29 03:38:59 +0000
commit1491f078cfe48411f5e046fa25bbe7cb1b2d57db (patch)
tree384bb70ec362537a22be5c2edbb5ab294a8d532e /intl/bindtextdom.c
parentba73e5c0425a23d60c2553775eaf1b4d921f290e (diff)
downloadgdb-1491f078cfe48411f5e046fa25bbe7cb1b2d57db.zip
gdb-1491f078cfe48411f5e046fa25bbe7cb1b2d57db.tar.gz
gdb-1491f078cfe48411f5e046fa25bbe7cb1b2d57db.tar.bz2
* Import GNU gettext 0.10.35.
Diffstat (limited to 'intl/bindtextdom.c')
-rw-r--r--intl/bindtextdom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/intl/bindtextdom.c b/intl/bindtextdom.c
index 9fcb8d9..d9c3f34 100644
--- a/intl/bindtextdom.c
+++ b/intl/bindtextdom.c
@@ -1,5 +1,5 @@
/* Implementation of the bindtextdomain(3) function
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -61,7 +61,9 @@ extern struct binding *_nl_domain_bindings;
prefix. So we have to make a difference here. */
#ifdef _LIBC
# define BINDTEXTDOMAIN __bindtextdomain
-# define strdup(str) __strdup (str)
+# ifndef strdup
+# define strdup(str) __strdup (str)
+# endif
#else
# define BINDTEXTDOMAIN bindtextdomain__
#endif
@@ -133,7 +135,9 @@ BINDTEXTDOMAIN (domainname, dirname)
else
{
/* We have to create a new binding. */
+#if !defined _LIBC && !defined HAVE_STRDUP
size_t len;
+#endif
struct binding *new_binding =
(struct binding *) malloc (sizeof (*new_binding));