blob: 91fb49798b3b817cdac9894bcbecc095c86684cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Index: grep-2.5.1a/src/dfa.c
===================================================================
--- grep-2.5.1a.orig/src/dfa.c
+++ grep-2.5.1a/src/dfa.c
@@ -102,7 +102,7 @@ extern void free();
/* If we (don't) have I18N. */
/* glibc defines _ */
#ifndef _
-# ifdef HAVE_LIBINTL_H
+# if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H)
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)
Index: grep-2.5.1a/lib/obstack.c
===================================================================
--- grep-2.5.1a.orig/lib/obstack.c
+++ grep-2.5.1a/lib/obstack.c
@@ -451,7 +451,7 @@ _obstack_memory_used (h)
/* Define the error handler. */
#ifndef _
-# ifdef HAVE_LIBINTL_H
+# if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H)
# include <libintl.h>
# ifndef _
# define _(Str) gettext (Str)
Index: grep-2.5.1a/lib/regex.c
===================================================================
--- grep-2.5.1a.orig/lib/regex.c
+++ grep-2.5.1a/lib/regex.c
@@ -112,7 +112,7 @@
#endif
/* This is for other GNU distributions with internationalized messages. */
-#if HAVE_LIBINTL_H || defined _LIBC
+#if ENABLE_NLS && (HAVE_LIBINTL_H || defined _LIBC)
# include <libintl.h>
# ifdef _LIBC
# undef gettext
|