]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Be less aggressive when looking for ASYNC and NDELAY alternatives.
authorHarlan Stenn <stenn@ntp.org>
Sat, 10 Nov 2001 07:00:29 +0000 (02:00 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 10 Nov 2001 07:00:29 +0000 (02:00 -0500)
From John Hay.

bk: 3becd08dGZ5aqdlI3mAtyiII-irbZg

include/ntp_io.h

index dc64ab6ace7ec76fd1990fe45ed28b8a287611b0..983c6c7dce85bb412c8da81b07d6e26f55d304f0 100644 (file)
  * 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