diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-03-04 03:14:54 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-03-04 03:14:54 -0500 |
| commit | 2c6147ab6c567babf07b85820e99f541e423614a (patch) | |
| tree | 9067b51de895125ecfee07bc57c254d6fb4f8fad /src/wchar | |
| parent | 584c5b3e93e3007dfb16bcb43d901df74be21116 (diff) | |
fix compilation when c=199409
Diffstat (limited to 'src/wchar')
| -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) { |
