about summary refs log tree commit diff
path: root/locale/programs/locfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r--locale/programs/locfile.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c
index 3bbe479017..284c7ce5b6 100644
--- a/locale/programs/locfile.c
+++ b/locale/programs/locfile.c
@@ -963,11 +963,7 @@ write_locale_data (const char *output_path, const char *category,
      limitation of the implementation.  */
   for (cnt = 0; cnt < n_elem; cnt += step)
     {
-      /* XXX Fixme: should be in libc header.  */
-#ifndef MAX_IOVEC
-# define MAX_IOVEC 8
-#endif
-      step = MIN (MAX_IOVEC, n_elem - cnt);
+      step = MIN (UIO_MAXIOV, n_elem - cnt);
 
       if (writev (fd, &vec[cnt], step) < 0)
 	{