summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/fputc.c')
-rw-r--r--lib/libc/stdio/fputc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdio/fputc.c b/lib/libc/stdio/fputc.c
index d502365..0fe538d 100644
--- a/lib/libc/stdio/fputc.c
+++ b/lib/libc/stdio/fputc.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include "namespace.h"
#include <stdio.h>
#include "un-namespace.h"
+#include "local.h"
#include "libc_private.h"
int
@@ -52,6 +53,7 @@ fputc(c, fp)
{
int retval;
FLOCKFILE(fp);
+ ORIENT(fp, -1);
retval = putc(c, fp);
FUNLOCKFILE(fp);
return (retval);
OpenPOWER on IntegriCloud