/* $NetBSD: ntp_io.h,v 1.1.1.2 2003/12/04 16:05:22 drochner Exp $ */ #if !defined _NTP_IO_H #define _NTP_IO_H /* * POSIX says use to get O_* symbols and * SEEK_SET symbol form . */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #include #ifdef HAVE_SYS_FILE_H # include #endif #ifdef HAVE_FCNTL_H # include #endif #if !defined(SEEK_SET) && defined(L_SET) # define SEEK_SET L_SET #endif #ifdef SYS_WINNT # include # 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