aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fputc.c')
-rw-r--r--newlib/libc/stdio/fputc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c
index 026ccfb..422f675 100644
--- a/newlib/libc/stdio/fputc.c
+++ b/newlib/libc/stdio/fputc.c
@@ -59,6 +59,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <_ansi.h>
#include <stdio.h>
+#include "local.h"
int
_DEFUN(fputc, (ch, file),
@@ -66,6 +67,7 @@ _DEFUN(fputc, (ch, file),
FILE * file)
{
int result;
+ CHECK_INIT(_REENT);
_flockfile (file);
result = putc (ch, file);
_funlockfile (file);