summaryrefslogtreecommitdiff
path: root/posix/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/getopt.c')
-rw-r--r--posix/getopt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index a6d2d042c7..c981553c57 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -77,9 +77,8 @@
#endif
#ifndef _
-/* This is for other GNU distributions with internationalized messages.
- When compiling libc, the _ macro is predefined. */
-# ifdef HAVE_LIBINTL_H
+/* This is for other GNU distributions with internationalized messages. */
+# if defined HAVE_LIBINTL_H || defined _LIBC
# include <libintl.h>
# define _(msgid) gettext (msgid)
# else