1 --- isatty.c.orig 2003-05-20 15:21:02.000000000 -0700
2 +++ isatty.c 2005-06-02 13:46:32.000000000 -0700
7 +#include <sys/filio.h>
19 - retval = (tcgetattr(fd, &t) != -1);
20 + if(ioctl(fd, FIODTYPE, &type) != -1) {
21 + if((retval = (type == D_TTY)) == 0)
24 + retval = (tcgetattr(fd, &t) != -1);