diff options
Diffstat (limited to 'libc/stdio/getc.c')
-rw-r--r-- | libc/stdio/getc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdio/getc.c b/libc/stdio/getc.c index cdd5722..16a5b1d 100644 --- a/libc/stdio/getc.c +++ b/libc/stdio/getc.c @@ -32,6 +32,7 @@ */ #include <stdio.h> +#include "local.h" /* * A subroutine version of the macro getc_unlocked. @@ -54,8 +55,8 @@ getc(FILE *fp) { int c; - flockfile(fp); + FLOCKFILE(fp); c = __sgetc(fp); - funlockfile(fp); + FUNLOCKFILE(fp); return (c); } |