← Commit list

0ae050967

Denys Vlasenko
Denys Vlasenko
2016-09-18
SUCCESS Duration: 201s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/libbb.h+3 -2
@@ -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