diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-15 14:07:15 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-15 14:07:15 -0400 |
commit | 514ff5558483bb7f7cc13e24720ebd5bdf2b9cdf (patch) | |
tree | 0938ee8f6eba5e94691952c00120f1ce0afb6a11 /src/stdio | |
parent | 732032e1dd01a4c9189c967ce12050786d62947f (diff) |
don't support fds when not targetting POSIX
Diffstat (limited to 'src/stdio')
-rw-r--r-- | src/stdio/__printf.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c index 5b27bbdd..3f2b82ad 100644 --- a/src/stdio/__printf.c +++ b/src/stdio/__printf.c @@ -1,18 +1,24 @@ +#include "stdio.h" #include "_stdio.h" #include "stddef.h" -#include "../wctype/wint_t.c" -#include "../wctype/wctrans_t.c" +#include "wctype/wint_t.c" +#include "wctype/wctrans_t.c" #include "wchar.h" #include "inttypes.h" #include "unistd.h" #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199909L -#include "../stdint/intmax_t.c" -#include "../stdint/uintmax_t.c" -#include "../stdint/intptr_t.c" -#include "../stdint/UINTMAX_MAX.c" +#include "stdint/intmax_t.c" +#include "stdint/uintmax_t.c" +#include "stdint/intptr_t.c" +#include "stdint/UINTMAX_MAX.c" #define strtoumax __strtoumax -#include "../inttypes/strtoumax.c" +#include "inttypes/strtoumax.c" +#endif + +#ifndef _POSIX_SOURCE +#undef write +#define write(_fd, _buf, _size) (void)(_fd) #endif #define NUMBUFLEN 64 |