summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/include/ntp_io.h
blob: d60f08359b847ab1ef564b953ad49b4ea82e1445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * POSIX says use <fnct.h> to get O_* symbols and 
 * SEEK_SET symbol form <untisd.h>.
 */
#if defined(NTP_POSIX_SOURCE)

/*
 * POSIX way
 */
#include <stdio.h>
#if defined(HAVE_SIGNALED_IO) && (defined(SYS_AUX2) || defined(SYS_AUX3) || defined(SYS_PTX))
#include <sys/file.h>
#endif
#include <unistd.h>
#include <fcntl.h>
#else
/*
 * BSD way
 */
#include <sys/file.h>
#include <fcntl.h>
#if !defined(SEEK_SET) && defined(L_SET)
#define SEEK_SET L_SET
#endif
#endif
OpenPOWER on IntegriCloud