aboutsummaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
Diffstat (limited to 'intl')
-rw-r--r--intl/localealias.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/intl/localealias.c b/intl/localealias.c
index 45c16c6..01fbe04 100644
--- a/intl/localealias.c
+++ b/intl/localealias.c
@@ -131,6 +131,15 @@ struct block_list
# define alloca(size) (malloc (size))
#endif /* have alloca */
+#if defined _LIBC || defined HAVE_FGETS_UNLOCKED
+# undef fgets
+# define fgets(buf, len, s) fgets_unlocked (buf, len, s)
+#endif
+#if defined _LIBC || defined HAVE_FEOF_UNLOCKED
+# undef feof
+# define feof(s) feof_unlocked (s)
+#endif
+
struct alias_map
{