+/* On SVR4, this #define is necessary to make <sys/ioctl.h> define
+ many of the ioctls. */
+#define BSD_COMP
+
#include <sys/types.h>
#include <sys/param.h>
So we include <sys/termios.h> and let <sys/ioctl.h> redefine things.
This produces some spurious warnings. */
-#ifdef HAVE_SYS_TERMIOS_H
+#ifdef HAVE_sys_termios_h
#include <sys/termios.h>
#endif
#include <net/if_arp.h>
#endif
#ifdef SIOCGNIT
+#ifdef HAVE_net_nit_h
#include <net/nit.h>
-#endif
-#endif
+#else /* No net/nit.h. */
+#undef SIOCGNIT
+#undef SIOCSNIT
+#endif /* net/nit.h. */
+#endif /* SIOCGNIT. */
+#endif /* SIOCGIFCONF. */
/* These exist on Sequents. */
#ifdef SMIOSTATS
#undef DKIOCEXCL
#undef DKIOCGET
#undef DKIOCHDR
+/* Introduced by OSF/1 2.0. */
+#undef FIOPIPESTAT
+#undef SIOCSRREQR
+#undef SIOCSRREQW
+#undef SRVC_REQUEST
#endif
#define DEFINE(name, value) \