1 /* On SVR4, this #define is necessary to make <sys/ioctl.h> define
8 /* On SunOS 4.1, <sys/ioctl.h> and <sys/termios.h> define some symbols
9 with different values, but <sys/termios.h> defines some ioctl symbols
10 not in <sys/ioctl.h>, so we need it. Our <sys/ioctl.h> should define
11 them with the values from Sun's <sys/ioctl.h>, not <sys/termios.h>.
12 So we include <sys/termios.h> and let <sys/ioctl.h> redefine things.
13 This produces some spurious warnings. */
15 #ifdef HAVE_sys_termios_h
16 #include <sys/termios.h>
19 /* This causes <sys/ioctl.h> to define some necessary data structure. */
24 #include <sys/ioctl.h>
27 #include <sys/socket.h>
30 #include <net/route.h>
31 #if defined(SIOCGARP) && !defined(ARPOP_REQUEST)
32 #include <net/if_arp.h>
37 #else /* No net/nit.h. */
40 #endif /* net/nit.h. */
41 #endif /* SIOCGNIT. */
42 #endif /* SIOCGIFCONF. */
44 /* These exist on Sequents. */
56 /* These exist under Ultrix, but I figured there may be others. */
58 #include <ufs/fs.h> /* for DIOC* */
61 #include <sys/devio.h>
65 /* Ultrix has a conditional include that brings these in; we have to force
66 their inclusion when we actually compile them. */
76 #include <sys/un.h> /* get sockaddr_un for elcsd.h */
82 /* Couldn't find the header where the structures used by these are
83 defined; it looks like an unbundled LAT package or something. */
90 /* struct mtop hasn't been in sys/mtio.h since 4.1 */
95 #if defined(__osf__) && defined(__alpha__)
96 #include <sys/ioctl_compat.h> /* To get TIOCGETP, etc. */
97 #include <alpha/pt.h> /* for DIOC* */
98 #include <sys/mtio.h> /* for MTIOC* */
99 /* The binlog_getstatus structure doesn't seem to be defined. */
100 #undef BINLOG_GETSTATUS
101 /* Can't find `struct ifdata' anywhere. */
104 /* OSF/1 smells an awful lot like Ultrix. */
109 /* This macro looks screwed in sys/devio.h. */
111 /* This is in sys/dkio.h, but we don't need it. */
117 /* Introduced by OSF/1 2.0. */
124 #define DEFINE(name, value) \
125 printf("#define %s 0x%.8x\n", (name), (value))