diff options
Diffstat (limited to 'contrib/ntp/include/ntp_io.h')
-rw-r--r-- | contrib/ntp/include/ntp_io.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/ntp/include/ntp_io.h b/contrib/ntp/include/ntp_io.h new file mode 100644 index 0000000..0ef4fa6 --- /dev/null +++ b/contrib/ntp/include/ntp_io.h @@ -0,0 +1,33 @@ +#if !defined _NTP_IO_H +#define _NTP_IO_H +/* + * POSIX says use <fnct.h> to get O_* symbols and + * SEEK_SET symbol form <unistd.h>. + */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#include <stdio.h> +#ifdef HAVE_SYS_FILE_H +# include <sys/file.h> +#endif +#ifdef HAVE_FCNTL_H +# include <fcntl.h> +#endif +#if !defined(SEEK_SET) && defined(L_SET) +# define SEEK_SET L_SET +#endif + +#ifdef SYS_WINNT +# include <io.h> +# include "win32_io.h" +#endif + +#endif |