Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 026ccfb83..422f6753a 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);