X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2F__towrite.c;h=380ea396a133ca81ba230b2e45186aed5da2775f;hb=96fbcf7d80f469e39d1dd12533f8bb8d13b64fe5;hp=b4587419dddbc8585c42ef7126b1a198950aaae2;hpb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;p=musl diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c index b4587419..380ea396 100644 --- a/src/stdio/__towrite.c +++ b/src/stdio/__towrite.c @@ -17,5 +17,11 @@ int __towrite(FILE *f) return 0; } -/* Link flush-on-exit code iff any stdio write functions are linked. */ -int (*const __fflush_on_exit)(FILE *) = fflush; +const int __towrite_used = 1; + +void __stdio_exit(void); + +void __flush_on_exit() +{ + __stdio_exit(); +}