179894
commit 7f784fabcb186ffaa082ed0aeed52a56b7d96cee
179894
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
179894
Date:   Fri Jul 2 16:53:25 2021 +0530
179894
179894
    iconvconfig: Use the public feof_unlocked
179894
    
179894
    Build of iconvconfig failed with CFLAGS=-Os since __feof_unlocked is
179894
    not a public symbol.  Replace with feof_unlocked (defined to
179894
    __feof_unlocked when IS_IN (libc)) to fix this.
179894
    
179894
    Reported-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
179894
    Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
179894
179894
diff --git a/iconv/gconv_parseconfdir.h b/iconv/gconv_parseconfdir.h
179894
index ba9b3fd36d9e30f9..234b85a586f1d79a 100644
179894
--- a/iconv/gconv_parseconfdir.h
179894
+++ b/iconv/gconv_parseconfdir.h
179894
@@ -34,6 +34,7 @@
179894
 # define mempcpy __mempcpy
179894
 # undef lstat64
179894
 # define lstat64 __lstat64
179894
+# define feof_unlocked __feof_unlocked
179894
 #endif
179894
 
179894
 /* Name of the file containing the module information in the directories
179894
@@ -65,7 +66,7 @@ read_conf_file (const char *filename, const char *directory, size_t dir_len)
179894
 
179894
   /* Process the known entries of the file.  Comments start with `#' and
179894
      end with the end of the line.  Empty lines are ignored.  */
179894
-  while (!__feof_unlocked (fp))
179894
+  while (!feof_unlocked (fp))
179894
     {
179894
       char *rp, *endp, *word;
179894
       ssize_t n = __getdelim (&line, &line_len, '\n', fp);