From d5e1fa835e46dac2e1729e73c5e6743ef78714c7 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 18:35:35 -0500 Subject: fix to compile under c89 --- src/stdio/freopen.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/stdio/freopen.c') 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 #include -//#include #include #include -//#include #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 -- cgit v1.2.1