summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/libiberty/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/libiberty/getopt.c')
-rw-r--r--contrib/binutils/libiberty/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/libiberty/getopt.c b/contrib/binutils/libiberty/getopt.c
index fd302b6..2402a39 100644
--- a/contrib/binutils/libiberty/getopt.c
+++ b/contrib/binutils/libiberty/getopt.c
@@ -82,7 +82,7 @@
#ifndef _
/* This is for other GNU distributions with internationalized messages.
When compiling libc, the _ macro is predefined. */
-# ifdef HAVE_LIBINTL_H
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
# include <libintl.h>
# define _(msgid) gettext (msgid)
# else
OpenPOWER on IntegriCloud