From 294097ed71af31961af5ded01883a93b24152d52 Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 13 Aug 2002 09:30:41 +0000 Subject: Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), putwc(), fputwc(), putwchar(), ungetwc(), fwide(). --- lib/libc/stdio/getchar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libc/stdio/getchar.c') diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c index e68c52f..5aa8024 100644 --- a/lib/libc/stdio/getchar.c +++ b/lib/libc/stdio/getchar.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include #include "un-namespace.h" +#include "local.h" #include "libc_private.h" #undef getchar @@ -55,6 +56,7 @@ getchar() { int retval; FLOCKFILE(stdin); + ORIENT(stdin, -1); retval = getc(stdin); FUNLOCKFILE(stdin); return (retval); -- cgit v1.1