diff options
Diffstat (limited to 'newlib/libc/stdio/feof.c')
-rw-r--r-- | newlib/libc/stdio/feof.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdio/feof.c b/newlib/libc/stdio/feof.c index 5372f2f37..aff4e84c8 100644 --- a/newlib/libc/stdio/feof.c +++ b/newlib/libc/stdio/feof.c @@ -46,6 +46,9 @@ No supporting OS subroutines are required. */ #include <stdio.h> +#include "local.h" + +/* A subroutine version of the macro feof. */ #undef feof @@ -54,6 +57,7 @@ _DEFUN(feof, (fp), FILE * fp) { int result; + CHECK_INIT(_REENT); _flockfile (fp); result = __sfeof (fp); _funlockfile (fp); |