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