mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
628d2ac1b0
do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
/*
|
|
* Sockets are not standard.
|
|
* So hide uglyness in include file.
|
|
*/
|
|
#if defined(SYS_CONVEXOS9)
|
|
#include "/sys/sync/queue.h"
|
|
#include "/sys/sync/sema.h"
|
|
#endif
|
|
|
|
#if defined(SYS_AIX)
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
#endif
|
|
|
|
#if (defined(SOLARIS) && !defined(bsd)) || defined(SYS_SUNOS4)
|
|
#include <sys/sockio.h>
|
|
#endif
|
|
|
|
#if defined(SYS_UNIXWARE1)
|
|
#include <sys/sockio.h>
|
|
#endif
|
|
|
|
#if defined(SYS_PTX) || defined(SYS_SINIXM)
|
|
#include <sys/stream.h>
|
|
#include <sys/stropts.h>
|
|
#endif
|
|
|
|
#if defined(SYS_SVR4)
|
|
#if !defined(USE_STREAMS_DEVICE_FOR_IF_CONFIG)
|
|
#include <sys/sockio.h>
|
|
#else /* USE_STREAMS_DEVICE_FOR_IF_CONFIG */
|
|
#include <netinet/ip.h>
|
|
#undef SIOCGIFCONF
|
|
#undef SIOCGIFFLAGS
|
|
#undef SIOCGIFADDR
|
|
#undef SIOCGIFBRDADDR
|
|
#undef SIOCGIFNETMASK
|
|
#define SIOCGIFCONF IPIOC_GETIFCONF
|
|
#define SIOCGIFFLAGS IPIOC_GETIFFLAGS
|
|
#define SIOCGIFADDR IPIOC_GETIFADDR
|
|
#define SIOCGIFBRDADDR IPIOC_GETIFBRDADDR
|
|
#define SIOCGIFNETMASK IPIOC_GETIFNETMASK
|
|
#endif /* USE_STREAMS_DEVICE_FOR_IF_CONFIG */
|
|
|
|
#endif /* SYS_SVR4 */
|
|
|
|
#if defined(SYS_FREEBSD)
|
|
#include <sys/time.h>
|
|
#endif
|
|
|
|
#include <net/if.h>
|