aboutsummaryrefslogtreecommitdiff
path: root/posix/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regex.c')
-rw-r--r--posix/regex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 8cce459a0b..440194a201 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -89,6 +89,10 @@
/* This is for other GNU distributions with internationalized messages. */
#if HAVE_LIBINTL_H || defined _LIBC
# include <libintl.h>
+# ifdef _LIBC
+# undef gettext
+# define gettext(msgid) __dcgettext ("libc", msgid, LC_MESSAGES)
+# endif
#else
# define gettext(msgid) (msgid)
#endif