summaryrefslogtreecommitdiff
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-10-17 06:45:49 +0000
committerJim Meyering <jim@meyering.net>2000-10-17 06:45:49 +0000
commitc84107946236b4af89202f1e4ee2b158817ae2c8 (patch)
tree9442868fbc633ebf59a3bba6a9a6439000e97e25 /lib/getopt.c
parentad06715030e80a2d2436f7d984fbb4a9d91d9415 (diff)
downloadcoreutils-c84107946236b4af89202f1e4ee2b158817ae2c8.tar.xz
Update from libc.
Diffstat (limited to 'lib/getopt.c')
-rw-r--r--lib/getopt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index a5bc2c95e..e852127f6 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -75,11 +75,12 @@
#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)
+# ifndef _
+# define _(msgid) gettext (msgid)
+# endif
# else
# define _(msgid) (msgid)
# endif