4 /* On SunOS 4.1, <sys/ioctl.h> and <sys/termios.h> define some symbols
5 with different values, but <sys/termios.h> defines some ioctl symbols
6 not in <sys/ioctl.h>, so we need it. Our <sys/ioctl.h> should define
7 them with the values from Sun's <sys/ioctl.h>, not <sys/termios.h>.
8 So we include <sys/termios.h> and let <sys/ioctl.h> redefine things.
9 This produces some spurious warnings. */
11 #ifdef HAVE_SYS_TERMIOS_H
12 #include <sys/termios.h>
15 /* This causes <sys/ioctl.h> to define some necessary data structure. */
20 #include <sys/ioctl.h>
23 #include <sys/socket.h>
26 #include <net/route.h>
27 #if defined(SIOCGARP) && !defined(ARPOP_REQUEST)
28 #include <net/if_arp.h>
35 /* These exist on Sequents. */
47 /* These exist under Ultrix, but I figured there may be others. */
49 #include <ufs/fs.h> /* for DIOC* */
52 #include <sys/devio.h>
56 /* Ultrix has a conditional include that brings these in; we have to force
57 their inclusion when we actually compile them. */
67 #include <sys/un.h> /* get sockaddr_un for elcsd.h */
73 /* Couldn't find the header where the structures used by these are
74 defined; it looks like an unbundled LAT package or something. */
81 /* struct mtop hasn't been in sys/mtio.h since 4.1 */
86 #define DEFINE(name, value) \
87 printf("#define %s 0x%.8x\n", (name), (value))