diff options
author | roberto <roberto@FreeBSD.org> | 2004-07-20 15:01:56 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2004-07-20 15:01:56 +0000 |
commit | 118e757284cbb8fc4f43a713e892b41504b50a5f (patch) | |
tree | 528d12dda44ebdc3ffcc38050f159ac553a69c17 /contrib/ntp/libntp/iosignal.c | |
parent | a85d9ae25e8e8696677bc30feb6eaf7fc150e529 (diff) | |
download | FreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.zip FreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.tar.gz |
Virgin import of ntpd 4.2.0
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 |