aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.c2
-rw-r--r--posix/regex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index df7127e478..58ba10431c 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -78,7 +78,7 @@
#ifndef _
/* This is for other GNU distributions with internationalized messages. */
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# ifndef _
# define _(msgid) gettext (msgid)
diff --git a/posix/regex.c b/posix/regex.c
index facb833f58..1435a809aa 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -91,7 +91,7 @@
# endif
/* This is for other GNU distributions with internationalized messages. */
-# if HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# ifdef _LIBC
# undef gettext