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>
43 /* These exist on Sequents. */
55 /* These exist under Ultrix, but I figured there may be others. */
57 #include <ufs/fs.h> /* for DIOC* */
60 #include <sys/devio.h>
64 /* Ultrix has a conditional include that brings these in; we have to force
65 their inclusion when we actually compile them. */
75 #include <sys/un.h> /* get sockaddr_un for elcsd.h */
81 /* Couldn't find the header where the structures used by these are
82 defined; it looks like an unbundled LAT package or something. */
89 /* struct mtop hasn't been in sys/mtio.h since 4.1 */
94 #if defined(__osf__) && defined(__alpha__)
95 #include <sys/ioctl_compat.h> /* To get TIOCGETP, etc. */
96 #include <alpha/pt.h> /* for DIOC* */
97 #include <sys/mtio.h> /* for MTIOC* */
98 /* The binlog_getstatus structure doesn't seem to be defined. */
99 #undef BINLOG_GETSTATUS
100 /* Can't find `struct ifdata' anywhere. */
103 /* OSF/1 smells an awful lot like Ultrix. */
108 /* This macro looks screwed in sys/devio.h. */
110 /* This is in sys/dkio.h, but we don't need it. */
118 #define DEFINE(name, value) \
119 printf("#define %s 0x%.8x\n", (name), (value))