--- gforth/engine/io.c 2000/09/23 15:47:08 1.13 +++ gforth/engine/io.c 2002/03/13 17:09:09 1.14 @@ -626,7 +626,7 @@ long key_avail (FILE * stream) if(!terminal_prepped) prep_terminal(); -#ifndef _WIN32 +#if defined(FIONREAD) && !defined(_WIN32) if(isatty (tty)) { result = ioctl (tty, FIONREAD, &chars_avail); }