summary refs log tree commit diff
path: root/argp/argp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'argp/argp-parse.c')
-rw-r--r--argp/argp-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/argp/argp-parse.c b/argp/argp-parse.c
index 71b3fb298b..e16b2f78e5 100644
--- a/argp/argp-parse.c
+++ b/argp/argp-parse.c
@@ -33,6 +33,10 @@
    When compiling libc, the _ macro is predefined.  */
 # if defined HAVE_LIBINTL_H || defined _LIBC
 #  include <libintl.h>
+#  ifdef _LIBC
+#   undef dgettext
+#   define dgettext(domain, msgid) __dcgettext (domain, msgid, LC_MESSAGES)
+#  endif
 # else
 #  define dgettext(domain, msgid) (msgid)
 #  define gettext(msgid) (msgid)