diff options
Diffstat (limited to 'newlib/libc/stdio/putc.c')
-rw-r--r-- | newlib/libc/stdio/putc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c index 509aaf48d..097323417 100644 --- a/newlib/libc/stdio/putc.c +++ b/newlib/libc/stdio/putc.c @@ -67,6 +67,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; #include <_ansi.h> #include <stdio.h> +#include "local.h" /* * A subroutine version of the macro putc. @@ -80,8 +81,8 @@ _DEFUN(putc, (c, fp), register FILE *fp) { int result; + CHECK_INIT (_REENT); _flockfile (fp); - /* CHECK_INIT is (eventually) called by __swbuf. */ result = __sputc (c, fp); _funlockfile (fp); return result; |