about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--include/libintl.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d281eb3cf3..5289a5447e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
 
+	* include/libintl.h: Include <locale.h> since libintl.h doesn't if
+	we are not optimizing.
+
 	* sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
 	inclusion.
 
diff --git a/include/libintl.h b/include/libintl.h
index 0f77658a0e..dc54ccfc7b 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -1,5 +1,6 @@
 #ifndef _LIBINTL_H
 #include <intl/libintl.h>
+#include <locale.h>
 
 /* Now define the internal interfaces.  */
 extern char *__gettext (__const char *__msgid);