diff --git a/lang/cem/libcc/gen/isatty.c b/lang/cem/libcc/gen/isatty.c index 5152801ad..4fa9cad35 100644 --- a/lang/cem/libcc/gen/isatty.c +++ b/lang/cem/libcc/gen/isatty.c @@ -1,8 +1,10 @@ -#include - isatty(f) { - struct sgttyb ttyb; + char buf[128]; + /* not a sgttyb struct; it might not be large enough; + I know for a fact that it is'nt large enough on PC/IX, + where gtty is an ioctl(..., TCGETA, ...) + */ if (gtty(f, &ttyb) < 0) return 0; return 1;