projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
204c7fb
)
libbb: do not use fflush_unlocked, musl does not like fflush_unlocked(NULL)
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 18 Sep 2016 19:49:30 +0000
(21:49 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 18 Sep 2016 19:49:30 +0000
(21:49 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
patch
|
blob
|
history
diff --git
a/include/libbb.h
b/include/libbb.h
index bf356d727367b42d8165bbd416f55803d0754c40..3752df982be024d3142380a7355326b6c25b9c5d 100644
(file)
--- 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