--- gforth/engine/io.c 2007/12/31 18:40:25 1.32 +++ gforth/engine/io.c 2008/08/09 13:24:25 1.33 @@ -621,8 +621,7 @@ long key_avail (FILE * stream) { int tty = fileno (stream); fd_set selin; - static struct timespec now = { 0 , 0 }; - int res; + static struct timeval now = { 0 , 0 }; setvbuf(stream, NULL, _IONBF, 0); if(!terminal_prepped && stream == stdin)