diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 18:35:35 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 18:35:35 -0500 |
| commit | d5e1fa835e46dac2e1729e73c5e6743ef78714c7 (patch) | |
| tree | 656a1c893b9930f444761c2811b1fc57fccd6802 /src/stdio/freopen.c | |
| parent | 7cdd27f8dce39bed37a266fa578cfaedce0a015d (diff) | |
fix to compile under c89
Diffstat (limited to 'src/stdio/freopen.c')
| -rw-r--r-- | src/stdio/freopen.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c index b39fda4c..b40eb439 100644 --- a/src/stdio/freopen.c +++ b/src/stdio/freopen.c @@ -3,19 +3,16 @@ #define POSIX_FORCED #endif -//#include <sys/types.h> #include <errno.h> -//#include <fcntl.h> #include <stdio.h> #include <string.h> -//#include <unistd.h> #include "_stdio.h" #ifdef POSIX_FORCED -#include "termios/_termios.h" #include "_syscall.h" #define open(_p, _f, _m) __scall3(open, _p, _f, _m) -#define isatty(_fd) ioctl(_fd, TCFLSH, 0) +#define isatty(_fd) (-1) /*ioctl(_fd, TCFLSH, 0) */ +#define TCFLSH 0x540B #define O_RDONLY 00 #define O_WRONLY 01 #define O_CREAT 0100 |
