aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-09 08:26:51 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-09 08:26:51 +0000
commit4c95120ead7e04c137796008e6abaf67bedbe27b (patch)
treeaac548427ead2368a95e5a2e033ac2cc8b93a896
parent0c6a66a792ffa0672d9d75a1f9708e9b80b18a47 (diff)
downloadglibc-4c95120ead7e04c137796008e6abaf67bedbe27b.zip
glibc-4c95120ead7e04c137796008e6abaf67bedbe27b.tar.gz
glibc-4c95120ead7e04c137796008e6abaf67bedbe27b.tar.bz2
Update.
1999-02-09 Ulrich Drepper <drepper@cygnus.com> * intl/dcgettext.c: Include locale.h is available.
-rw-r--r--ChangeLog4
-rw-r--r--intl/dcgettext.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 64cab08..0dc60ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1999-02-09 Ulrich Drepper <drepper@cygnus.com>
+
+ * intl/dcgettext.c: Include locale.h is available.
+
1999-02-08 Ulrich Drepper <drepper@cygnus.com>
* po/nl.po: Update from translation team.
diff --git a/intl/dcgettext.c b/intl/dcgettext.c
index 77de76f..cc5299e 100644
--- a/intl/dcgettext.c
+++ b/intl/dcgettext.c
@@ -1,5 +1,5 @@
/* Implementation of the dcgettext(3) function.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however.
@@ -79,6 +79,10 @@ void free ();
# include <unistd.h>
#endif
+#if defined HAVE_LOCALE_H || defined _LIBC
+# include <locale.h>
+#endif
+
#include "gettext.h"
#include "gettextP.h"
#ifdef _LIBC