Commit a255920e authored by anton's avatar anton

portability change

parent de6390b4
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment