diff options
Diffstat (limited to 'src/sys/con_tty.c')
-rw-r--r-- | src/sys/con_tty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/con_tty.c b/src/sys/con_tty.c index 06dcc166..f128b0d7 100644 --- a/src/sys/con_tty.c +++ b/src/sys/con_tty.c @@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include <signal.h> #include <termios.h> #include <fcntl.h> +#include <sys/time.h> /* ============================================================= @@ -169,7 +170,7 @@ void CON_Shutdown( void ) } // Restore blocking to stdin reads - fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) & ~O_NDELAY ); + fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) & ~O_NONBLOCK ); } /* @@ -257,7 +258,7 @@ void CON_Init( void ) signal(SIGTTOU, SIG_IGN); // Make stdin reads non-blocking - fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | O_NDELAY ); + fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | O_NONBLOCK ); if (isatty(STDIN_FILENO)!=1) { |