]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Just confirmed that all current platforms need this header file
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jan 2008 00:56:06 +0000 (00:56 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jan 2008 00:56:06 +0000 (00:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@99718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/acl.c

index 0f454d9868295b75e5cadadc96bf08fe2cc96923..8cc79a3026f65e90a2168763fec3258a5da0bae6 100644 (file)
@@ -42,6 +42,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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>
@@ -52,10 +53,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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