aboutsummaryrefslogtreecommitdiffstats
path: root/acl.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-22 13:11:34 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-22 13:11:34 +0000
commitd6e1341f9b437b0ab1d7f4709459f0a2879b3634 (patch)
tree3bd282f1746371aca6b96c133d25f5e6f5e9df36 /acl.c
parent77ac34c066f3d0e70a59814a9bc88fc5243846e3 (diff)
phase 1 of header include cleanup (bug #4067)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/acl.c b/acl.c
index 5e697bdf7..47edeb0f2 100755
--- a/acl.c
+++ b/acl.c
@@ -18,13 +18,6 @@
#include <signal.h>
#include <errno.h>
#include <unistd.h>
-#include "asterisk/acl.h"
-#include "asterisk/logger.h"
-#include "asterisk/channel.h"
-#include "asterisk/options.h"
-#include "asterisk/utils.h"
-#include "asterisk/lock.h"
-#include "asterisk/srv.h"
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
@@ -32,17 +25,28 @@
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/ioctl.h>
+
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
#include <fcntl.h>
#include <net/route.h>
-
-AST_MUTEX_DEFINE_STATIC(routeseq_lock);
#endif
#if defined (SOLARIS)
#include <sys/sockio.h>
#endif
+#include "asterisk/acl.h"
+#include "asterisk/logger.h"
+#include "asterisk/channel.h"
+#include "asterisk/options.h"
+#include "asterisk/utils.h"
+#include "asterisk/lock.h"
+#include "asterisk/srv.h"
+
+#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
+AST_MUTEX_DEFINE_STATIC(routeseq_lock);
+#endif
+
struct ast_netsock {
ASTOBJ_COMPONENTS(struct ast_netsock);
struct sockaddr_in bindaddr;