bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

obstack.c doesn't honor ENABLE_NLS


From: Jim Meyering
Subject: obstack.c doesn't honor ENABLE_NLS
Date: Sun, 21 Oct 2001 11:10:35 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.107

Hi,

This showed up as a link error on a Unixware system when I
configure/build fileutils with --disable-nls.  That system had libintl.h,
but no gettext function in the libraries I was using.

2001-10-21  Jim Meyering  <address@hidden>

        * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
        this code would end up calling gettext even in packages built
        with --disable-nls.

Index: obstack.c
===================================================================
RCS file: /cvs/glibc/libc/malloc/obstack.c,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 obstack.c
--- obstack.c   2001/08/23 22:31:27     1.20
+++ obstack.c   2001/10/21 09:06:25
@@ -459,7 +459,7 @@ _obstack_memory_used (h)
 
 /* Define the error handler.  */
 # ifndef _
-#  if defined HAVE_LIBINTL_H || defined _LIBC
+#  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #   include <libintl.h>
 #   ifndef _
 #    define _(Str) gettext (Str)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]