xref: /freebsd/contrib/ntp/include/ntp_if.h (revision 30f31472f865ed8a733c0f4f7c6699f9aa68a5e5)
1 /*
2  * Sockets are not standard.
3  * So hide uglyness in include file.
4  */
5 /* was: defined(SYS_CONVEXOS9) */
6 #if defined(HAVE__SYS_SYNC_QUEUE_H) && defined(HAVE__SYS_SYNC_SEMA_H)
7 # include "/sys/sync/queue.h"
8 # include "/sys/sync/sema.h"
9 #endif
10 
11 /* was: defined(SYS_AIX) */
12 #if defined(TIME_WITH_SYS_TIME)
13 # include <sys/time.h>
14 # include <time.h>
15 #endif
16 
17 /* was: (defined(SYS_SOLARIS) && !defined(bsd)) || defined(SYS_SUNOS4) */
18 /* was: defined(SYS_UNIXWARE1) */
19 #ifdef HAVE_SYS_SOCKIO_H
20 # include <sys/sockio.h>
21 #endif
22 
23 /* was: #if defined(SYS_PTX) || defined(SYS_SINIXM) */
24 #ifdef HAVE_SYS_STREAM_H
25 # include <sys/stream.h>
26 #endif
27 #ifdef HAVE_SYS_STROPTS_H
28 # include <sys/stropts.h>
29 #endif
30 
31 /* Was: #if defined(SYS_SVR4) */
32 #if defined(USE_STREAMS_DEVICE_FOR_IF_CONFIG)
33 # include <netinet/ip.h>
34 # undef SIOCGIFCONF
35 # undef SIOCGIFFLAGS
36 # undef SIOCGIFADDR
37 # undef SIOCGIFBRDADDR
38 # undef SIOCGIFNETMASK
39 # define SIOCGIFCONF	IPIOC_GETIFCONF
40 # define SIOCGIFFLAGS	IPIOC_GETIFFLAGS
41 # define SIOCGIFADDR	IPIOC_GETIFADDR
42 # define SIOCGIFBRDADDR IPIOC_GETIFBRDADDR
43 # define SIOCGIFNETMASK IPIOC_GETIFNETMASK
44 #if 0	/* We don't need this now that sys/sockio.h is handled above */
45 # else /* USE_STREAMS_DEVICE_FOR_IF_CONFIG */
46 #  include <sys/sockio.h>
47 #endif
48 # endif /* USE_STREAMS_DEVICE_FOR_IF_CONFIG */
49 /* was #endif SYS_SVR4 */
50 
51 
52 #ifdef HAVE_NET_IF_H
53 # include <net/if.h>
54 #endif /* HAVE_NET_IF_H */
55