diff options
Diffstat (limited to 'contrib/ntp/include/ntp_io.h')
-rw-r--r-- | contrib/ntp/include/ntp_io.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/ntp/include/ntp_io.h b/contrib/ntp/include/ntp_io.h index 0ef4fa6..983c6c7 100644 --- a/contrib/ntp/include/ntp_io.h +++ b/contrib/ntp/include/ntp_io.h @@ -30,4 +30,21 @@ # include "win32_io.h" #endif +/* + * Define FNDELAY and FASYNC using O_NONBLOCK and O_ASYNC if we need + * to (and can). This is here initially for QNX, but may help for + * others as well... + */ +#ifndef FNDELAY +# ifdef O_NONBLOCK +# define FNDELAY O_NONBLOCK +# endif +#endif + +#ifndef FASYNC +# ifdef O_ASYNC +# define FASYNC O_ASYNC +# endif +#endif + #endif |