diff options
Diffstat (limited to 'contrib/ntp/libntp/iosignal.c')
-rw-r--r-- | contrib/ntp/libntp/iosignal.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/ntp/libntp/iosignal.c b/contrib/ntp/libntp/iosignal.c index cda5e96..bcad890 100644 --- a/contrib/ntp/libntp/iosignal.c +++ b/contrib/ntp/libntp/iosignal.c @@ -1,5 +1,5 @@ /* - * ntp_io.c - input/output routines for ntpd. The socket-opening code + * iosignal.c - input/output routines for ntpd. The socket-opening code * was shamelessly stolen from ntpd. */ @@ -50,8 +50,8 @@ extern void input_handler P((l_fp *)); * Some systems (MOST) define SIGPOLL == SIGIO, others SIGIO == SIGPOLL, and * a few have separate SIGIO and SIGPOLL signals. This code checks for the * SIGIO == SIGPOLL case at compile time. - * Do not defined USE_SIGPOLL or USE_SIGIO. - * these are interal only to ntp_io.c! + * Do not define USE_SIGPOLL or USE_SIGIO. + * these are interal only to iosignal.c! */ # if defined(USE_SIGPOLL) # undef USE_SIGPOLL @@ -68,6 +68,12 @@ extern void input_handler P((l_fp *)); # define USE_SIGIO # endif +# ifdef __QNXNTO__ +# include <fcntl.h> +# include <unix.h> +# define FNDELAY O_NDELAY +# endif + # if defined(USE_SIGIO) && defined(USE_SIGPOLL) # if SIGIO == SIGPOLL # define USE_SIGIO |