diff --git a/srcpkgs/musl-legacy-compat/files/error.h b/srcpkgs/musl-legacy-compat/files/error.h index 4505784182a..835d0cb7f7d 100644 --- a/srcpkgs/musl-legacy-compat/files/error.h +++ b/srcpkgs/musl-legacy-compat/files/error.h @@ -13,6 +13,10 @@ static unsigned int error_message_count = 0; static inline void error(int status, int errnum, const char* format, ...) { + /* should be fflush(stdout), but that's unspecified if stdout has been closed; + * stick with fflush(NULL) for simplicity (glibc checks if the fd is still valid) */ + fflush(NULL); + va_list ap; fprintf(stderr, "%s: ", program_invocation_name); va_start(ap, format); diff --git a/srcpkgs/musl-legacy-compat/template b/srcpkgs/musl-legacy-compat/template index afc447314f4..a59d4e7683f 100644 --- a/srcpkgs/musl-legacy-compat/template +++ b/srcpkgs/musl-legacy-compat/template @@ -1,7 +1,7 @@ # Template file for 'musl-legacy-compat' pkgname=musl-legacy-compat version=0.4 -revision=1 +revision=2 archs="*-musl" bootstrap=yes short_desc="Legacy compatibility headers for the musl libc"