fix copy/paste error in popen changes that broke signals
[musl] / src / stdio / getc_unlocked.c
index 629223e..b38dad1 100644 (file)
@@ -1,8 +1,9 @@
 #include "stdio_impl.h"
 
-int getc_unlocked(FILE *f)
+int (getc_unlocked)(FILE *f)
 {
-       return f->rpos < f->rstop ? *f->rpos++ : __uflow(f);
+       return getc_unlocked(f);
 }
 
 weak_alias (getc_unlocked, fgetc_unlocked);
+weak_alias (getc_unlocked, _IO_getc_unlocked);