From 9540e9af4ad92d272e62ca114e7a51c8c5b75a2d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 7 Apr 2002 05:35:32 +0000 Subject: [PATCH] s/FNDELAY/O_NONBLOCK/ --- nq/source/sys_unixd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/sys_unixd.c b/nq/source/sys_unixd.c index a95c8ccf9..7f0490652 100644 --- a/nq/source/sys_unixd.c +++ b/nq/source/sys_unixd.c @@ -88,7 +88,7 @@ Sys_DebugLog (const char *file, const char *fmt, ...) static void shutdown (void) { - fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); + fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK); fflush (stdout); } @@ -164,7 +164,7 @@ main (int argc, const char **argv) host_parms.argv = com_argv; } - fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); + fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK); Sys_RegisterShutdown (Host_Shutdown); Sys_RegisterShutdown (shutdown);