Bläddra i källkod

- disable gettext support in obstack.
In function `print_and_abort':
obstack.c:(.text.print_and_abort+0x1b): undefined reference to `__dcgettext'

Bernhard Reutner-Fischer 17 år sedan
förälder
incheckning
239b898d87
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      libc/misc/gnu/obstack.c

+ 3 - 3
libc/misc/gnu/obstack.c

@@ -474,11 +474,11 @@ _obstack_memory_used (
 
 /* Define the error handler.  */
 # ifndef _
-/* #  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
-#  ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
+#  if ((HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC) && \
+      defined __UCLIBC_HAS_GETTEXT_AWARENESS__ && 00
 #   include <libintl.h>
 #   ifndef _
-#    define _(Str) __dcgettext (NULL, Str, LC_MESSAGES)
+#    define _(Str) INTUSE(__dcgettext) (NULL, Str, LC_MESSAGES)
 #   endif
 #  else
 #   define _(Str) (Str)