about summary refs log tree commit diff
path: root/src/stdio/__towrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/__towrite.c')
-rw-r--r--src/stdio/__towrite.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdio/__towrite.c b/src/stdio/__towrite.c
index b4587419..4bf96f4d 100644
--- a/src/stdio/__towrite.c
+++ b/src/stdio/__towrite.c
@@ -18,4 +18,7 @@ int __towrite(FILE *f)
 }
 
 /* Link flush-on-exit code iff any stdio write functions are linked. */
-int (*const __fflush_on_exit)(FILE *) = fflush;
+void __fflush_on_exit()
+{
+	fflush(0);
+}