aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index a6d2d04..c981553 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