From: Harlan Stenn Date: Sat, 10 Nov 2001 07:00:29 +0000 (-0500) Subject: Be less aggressive when looking for ASYNC and NDELAY alternatives. X-Git-Tag: NTP_4_1_72~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=165e3fd3660c496238cd4cf4d41ea2874cdb1d51;p=thirdparty%2Fntp.git Be less aggressive when looking for ASYNC and NDELAY alternatives. From John Hay. bk: 3becd08dGZ5aqdlI3mAtyiII-irbZg --- diff --git a/include/ntp_io.h b/include/ntp_io.h index dc64ab6ace..983c6c7dce 100644 --- a/include/ntp_io.h +++ b/include/ntp_io.h @@ -36,17 +36,15 @@ * others as well... */ #ifndef FNDELAY -# ifndef O_NONBLOCK -# error Both FNDELAY and O_NONBLOCK are undefined on this system +# ifdef O_NONBLOCK +# define FNDELAY O_NONBLOCK # endif -# define FNDELAY O_NONBLOCK #endif #ifndef FASYNC -# ifndef O_ASYNC -# error Both FASYNC and O_ASYNC are undefined on this system +# ifdef O_ASYNC +# define FASYNC O_ASYNC # endif -# define FASYNC O_ASYNC #endif #endif