libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2016-09-18 21:49:30 +02:00
parent 204c7fb229
commit 0ae0509679

View File

@ -203,8 +203,9 @@ int klogctl(int type, char *b, int len);
# define fgets(s,n,stream) fgets_unlocked(s,n,stream) # define fgets(s,n,stream) fgets_unlocked(s,n,stream)
# undef fputs # undef fputs
# define fputs(s,stream) fputs_unlocked(s,stream) # define fputs(s,stream) fputs_unlocked(s,stream)
# undef fflush /* musl <= 1.1.15 does not support fflush_unlocked(NULL) */
# define fflush(stream) fflush_unlocked(stream) //# undef fflush
//# define fflush(stream) fflush_unlocked(stream)
# undef feof # undef feof
# define feof(stream) feof_unlocked(stream) # define feof(stream) feof_unlocked(stream)
# undef ferror # undef ferror