diff options
Diffstat (limited to 'src/wchar/fgetwc.c')
| -rw-r--r-- | src/wchar/fgetwc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wchar/fgetwc.c b/src/wchar/fgetwc.c index 1ae00f59..2c4d0d24 100644 --- a/src/wchar/fgetwc.c +++ b/src/wchar/fgetwc.c @@ -3,6 +3,12 @@ #include "../stdio/_stdio.h" #include "limits.h" +#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L +#include "../unistd/read.c" +static int getc_unlocked(FILE *); +#include "../stdio/getc_unlocked.c" +#endif + wint_t fgetwc(FILE * stream) { if (fwide(stream, 1) <= 0) { |
