aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_features.c4
-rw-r--r--channels/chan_local.c4
-rw-r--r--main/config.c2
-rw-r--r--main/http.c4
-rw-r--r--main/translate.c1
5 files changed, 2 insertions, 13 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c
index f1b251fab..4545b1b62 100644
--- a/channels/chan_features.c
+++ b/channels/chan_features.c
@@ -34,12 +34,8 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <sys/signal.h>
#include "asterisk/lock.h"
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 8a93e2584..789cf54b3 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -29,12 +29,8 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <sys/signal.h>
#include "asterisk/lock.h"
diff --git a/main/config.c b/main/config.c
index da499acdd..cb4e9cabc 100644
--- a/main/config.c
+++ b/main/config.c
@@ -30,10 +30,10 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/network.h" /* we do some sockaddr manipulation here */
#include <errno.h>
#include <time.h>
#include <sys/stat.h>
-#include <sys/socket.h> /* for AF_INET */
#define AST_INCLUDE_GLOB 1
#ifdef AST_INCLUDE_GLOB
#if defined(__Darwin__) || defined(__CYGWIN__)
diff --git a/main/http.c b/main/http.c
index 7271e8523..ee5fad2d1 100644
--- a/main/http.c
+++ b/main/http.c
@@ -32,13 +32,11 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/network.h"
#include <time.h>
-#include <netinet/in.h>
#include <sys/time.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/signal.h>
-#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
diff --git a/main/translate.c b/main/translate.c
index 734f369d4..29e438afe 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -27,7 +27,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/socket.h>
#include <sys/time.h>
#include <sys/resource.h>