Merged revisions 99718 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jan 2008 01:06:27 +0000 (01:06 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jan 2008 01:06:27 +0000 (01:06 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99718 | tilghman | 2008-01-22 18:56:06 -0600 (Tue, 22 Jan 2008) | 2 lines

Just confirmed that all current platforms need this header file

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/acl.c

index 810ec80..9944f50 100644 (file)
@@ -28,6 +28,7 @@
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include "asterisk/network.h"
+#include <ifaddrs.h>
 
 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__)
 #include <fcntl.h>
@@ -38,10 +39,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/sockio.h>
 #endif
 
-#if defined(__Darwin__) || defined(__linux__)
-#include <ifaddrs.h>
-#endif
-
 #include "asterisk/acl.h"
 #include "asterisk/channel.h"
 #include "asterisk/utils.h"