summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/LAN_discovery.c1
-rw-r--r--toxcore/network.c3
-rw-r--r--toxcore/network.h4
3 files changed, 3 insertions, 5 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index e685ae0e..fdb374fa 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -31,7 +31,6 @@
31 31
32/* Used for get_broadcast(). */ 32/* Used for get_broadcast(). */
33#ifdef __linux 33#ifdef __linux
34#include <arpa/inet.h>
35#include <linux/netdevice.h> 34#include <linux/netdevice.h>
36#include <sys/ioctl.h> 35#include <sys/ioctl.h>
37#endif 36#endif
diff --git a/toxcore/network.c b/toxcore/network.c
index 62b36ae6..55cfa338 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -52,14 +52,11 @@
52 52
53#if !(defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) 53#if !(defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
54 54
55#include <arpa/inet.h>
56#include <errno.h> 55#include <errno.h>
57#include <fcntl.h> 56#include <fcntl.h>
58#include <netdb.h> 57#include <netdb.h>
59#include <netinet/in.h>
60#include <sys/time.h> 58#include <sys/time.h>
61#include <sys/types.h> 59#include <sys/types.h>
62#include <sys/socket.h>
63 60
64#else 61#else
65 62
diff --git a/toxcore/network.h b/toxcore/network.h
index 4f27a81d..cc5cbae3 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -58,8 +58,10 @@
58#include <windows.h> 58#include <windows.h>
59#include <ws2tcpip.h> 59#include <ws2tcpip.h>
60 60
61#else // Linux includes 61#else // UNIX includes
62 62
63#include <sys/socket.h>
64#include <netinet/in.h>
63#include <arpa/inet.h> 65#include <arpa/inet.h>
64#include <netdb.h> 66#include <netdb.h>
65#include <unistd.h> 67#include <unistd.h>