From: Denys Vlasenko Date: Sun, 18 Sep 2016 19:49:30 +0000 (+0200) Subject: libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL) X-Git-Tag: 1_26_0~261 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ae0509679033c8c9b511b83027d5ef076b7bf2b;p=oweals%2Fbusybox.git libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL) Signed-off-by: Denys Vlasenko --- diff --git a/include/libbb.h b/include/libbb.h index bf356d727..3752df982 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -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