summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/ferror.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ferror.c')
-rw-r--r--newlib/libc/stdio/ferror.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c
index ef17fd89d..6f665d4c8 100644
--- a/newlib/libc/stdio/ferror.c
+++ b/newlib/libc/stdio/ferror.c
@@ -53,6 +53,7 @@ No supporting OS subroutines are required.
static char sccsid[] = "%W% (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
+#include <_ansi.h>
#include <stdio.h>
/* A subroutine version of the macro ferror. */
@@ -60,12 +61,12 @@ static char sccsid[] = "%W% (Berkeley) %G%";
#undef ferror
int
-_DEFUN (ferror, (fp),
- FILE * fp)
+_DEFUN(ferror, (fp),
+ FILE * fp)
{
int result;
- _flockfile(fp);
+ _flockfile (fp);
result = __sferror (fp);
- _funlockfile(fp);
+ _funlockfile (fp);
return result;
}