From f751fcfbf62316be1aee7842c6db1100cc7c04b2 Mon Sep 17 00:00:00 2001 From: Yuri Date: Sun, 12 Feb 2017 22:28:18 -0800 Subject: [PATCH] Added missing includes: and Found these missing includes while compiling on FreeBSD 11. --- toxcore/LAN_discovery.c | 1 - toxcore/network.c | 3 --- toxcore/network.h | 4 +++- 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 @@ /* Used for get_broadcast(). */ #ifdef __linux -#include #include #include #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 @@ #if !(defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) -#include #include #include #include -#include #include #include -#include #else 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 @@ #include #include -#else // Linux includes +#else // UNIX includes +#include +#include #include #include #include