summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/__ipparse.c1
-rw-r--r--src/network/gethostbyaddr.c2
-rw-r--r--src/network/gethostbyname2.c2
-rw-r--r--src/network/gethostbyname2_r.c2
-rw-r--r--src/network/getifaddrs.c1
-rw-r--r--src/network/getnameinfo.c1
-rw-r--r--src/network/if_nameindex.c2
-rw-r--r--src/network/inet_ntop.c2
-rw-r--r--src/network/proto.c1
-rw-r--r--src/network/recv.c2
-rw-r--r--src/network/res_query.c1
-rw-r--r--src/network/send.c2
-rw-r--r--src/network/serv.c2
13 files changed, 3 insertions, 18 deletions
diff --git a/src/network/__ipparse.c b/src/network/__ipparse.c
index 2480265b..79f3b8cf 100644
--- a/src/network/__ipparse.c
+++ b/src/network/__ipparse.c
@@ -1,4 +1,3 @@
-#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/socket.h>
diff --git a/src/network/gethostbyaddr.c b/src/network/gethostbyaddr.c
index c9b6388a..598e2241 100644
--- a/src/network/gethostbyaddr.c
+++ b/src/network/gethostbyaddr.c
@@ -1,8 +1,6 @@
#define _GNU_SOURCE
#include <netdb.h>
-#include <string.h>
-#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/network/gethostbyname2.c b/src/network/gethostbyname2.c
index c9f90da2..dc9d6621 100644
--- a/src/network/gethostbyname2.c
+++ b/src/network/gethostbyname2.c
@@ -2,8 +2,6 @@
#include <sys/socket.h>
#include <netdb.h>
-#include <string.h>
-#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c
index 0dc6dc00..27eb080f 100644
--- a/src/network/gethostbyname2_r.c
+++ b/src/network/gethostbyname2_r.c
@@ -5,7 +5,7 @@
#include <string.h>
#include <netinet/in.h>
#include <errno.h>
-#include <inttypes.h>
+#include <stdint.h>
int gethostbyname2_r(const char *name, int af,
struct hostent *h, char *buf, size_t buflen,
diff --git a/src/network/getifaddrs.c b/src/network/getifaddrs.c
index fc49929a..5a94cc7c 100644
--- a/src/network/getifaddrs.c
+++ b/src/network/getifaddrs.c
@@ -11,6 +11,7 @@
#include <arpa/inet.h> /* inet_pton */
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
typedef union {
struct sockaddr_in6 v6;
diff --git a/src/network/getnameinfo.c b/src/network/getnameinfo.c
index 3d115c75..33f89a38 100644
--- a/src/network/getnameinfo.c
+++ b/src/network/getnameinfo.c
@@ -1,6 +1,5 @@
#include <netdb.h>
#include <limits.h>
-#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
diff --git a/src/network/if_nameindex.c b/src/network/if_nameindex.c
index ad0a7662..53b80b21 100644
--- a/src/network/if_nameindex.c
+++ b/src/network/if_nameindex.c
@@ -6,8 +6,6 @@
#include <errno.h>
#include "syscall.h"
-#include <stdio.h>
-
static void *do_nameindex(int s, size_t n)
{
size_t i, len, k;
diff --git a/src/network/inet_ntop.c b/src/network/inet_ntop.c
index ca333437..14f9f4c4 100644
--- a/src/network/inet_ntop.c
+++ b/src/network/inet_ntop.c
@@ -1,7 +1,5 @@
#include <sys/socket.h>
-#include <netinet/in.h>
#include <arpa/inet.h>
-#include <netdb.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/network/proto.c b/src/network/proto.c
index 8c25c53a..031003ad 100644
--- a/src/network/proto.c
+++ b/src/network/proto.c
@@ -1,5 +1,4 @@
#include <netdb.h>
-#include <stdio.h>
#include <string.h>
/* do we really need all these?? */
diff --git a/src/network/recv.c b/src/network/recv.c
index d04a54aa..59700485 100644
--- a/src/network/recv.c
+++ b/src/network/recv.c
@@ -1,6 +1,4 @@
#include <sys/socket.h>
-#include "syscall.h"
-#include "libc.h"
ssize_t recv(int fd, void *buf, size_t len, int flags)
{
diff --git a/src/network/res_query.c b/src/network/res_query.c
index c3ad1090..3847da37 100644
--- a/src/network/res_query.c
+++ b/src/network/res_query.c
@@ -1,4 +1,5 @@
#define _GNU_SOURCE
+#include <resolv.h>
#include <netdb.h>
#include "__dns.h"
#include "libc.h"
diff --git a/src/network/send.c b/src/network/send.c
index b6ec3101..9f104977 100644
--- a/src/network/send.c
+++ b/src/network/send.c
@@ -1,6 +1,4 @@
#include <sys/socket.h>
-#include "syscall.h"
-#include "libc.h"
ssize_t send(int fd, const void *buf, size_t len, int flags)
{
diff --git a/src/network/serv.c b/src/network/serv.c
index 5ade6ad1..41424e80 100644
--- a/src/network/serv.c
+++ b/src/network/serv.c
@@ -1,6 +1,4 @@
#include <netdb.h>
-#include <stdio.h>
-#include <string.h>
void endservent(void)
{