summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/rget.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/rget.c')
-rw-r--r--newlib/libc/stdio/rget.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/stdio/rget.c b/newlib/libc/stdio/rget.c
index 1c0bc474c..0444acee3 100644
--- a/newlib/libc/stdio/rget.c
+++ b/newlib/libc/stdio/rget.c
@@ -43,3 +43,13 @@ _DEFUN(__srget_r, (ptr, fp),
}
return EOF;
}
+
+/* This function isn't any longer declared in stdio.h, but it's
+ required for backward compatibility with applications built against
+ earlier dynamically built newlib libraries. */
+int
+_DEFUN(__srget, (fp),
+ register FILE *fp)
+{
+ return __srget_r (_REENT, fp);
+}