fix popen not to leak pipes from one child to another
[musl] / src / stdio / getc.c
index b739b0a..8409fc2 100644 (file)
@@ -1,6 +1,9 @@
-#include "stdio_impl.h"
+#include <stdio.h>
+#include "getc.h"
 
 int getc(FILE *f)
 {
-       return fgetc(f);
+       return do_getc(f);
 }
+
+weak_alias(getc, _IO_getc);