mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-13 06:25:46 +00:00
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:
parent
204c7fb229
commit
0ae0509679
@ -203,8 +203,9 @@ int klogctl(int type, char *b, int len);
|
||||
# define fgets(s,n,stream) fgets_unlocked(s,n,stream)
|
||||
# undef fputs
|
||||
# define fputs(s,stream) fputs_unlocked(s,stream)
|
||||
# undef fflush
|
||||
# define fflush(stream) fflush_unlocked(stream)
|
||||
/* musl <= 1.1.15 does not support fflush_unlocked(NULL) */
|
||||
//# undef fflush
|
||||
//# define fflush(stream) fflush_unlocked(stream)
|
||||
# undef feof
|
||||
# define feof(stream) feof_unlocked(stream)
|
||||
# undef ferror
|
||||
|
Loading…
Reference in New Issue
Block a user