git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@99718
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/ioctl.h>
+#include <ifaddrs.h>
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__)
#include <fcntl.h>
#include <sys/sockio.h>
#endif
-#if defined(__Darwin__) || defined(__linux__)
-#include <ifaddrs.h>
-#endif
-
/* netinet/ip.h may not define the following (See RFCs 791 and 1349) */
#if !defined(IPTOS_LOWCOST)
#define IPTOS_LOWCOST 0x02