From ce32d14a844d49a36db314d0855a3a34121c919b Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Wed, 7 Apr 2021 03:09:20 +0700 Subject: [PATCH] Added additional includes for GetIPList to work on Linux/Unix --- Common/Net/Resolve.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Common/Net/Resolve.cpp b/Common/Net/Resolve.cpp index 0a0fda0525..8edb249acf 100644 --- a/Common/Net/Resolve.cpp +++ b/Common/Net/Resolve.cpp @@ -17,10 +17,13 @@ #undef min #undef max #else +#include +#include +#include #include #include #include -#include +#include #include #endif @@ -136,7 +139,6 @@ bool GetIPList(std::vector &IP4s) { } #elif defined(SIOCGIFCONF) // Better detection on Linux/UNIX/MacOS/some Android WARN_LOG(SCENET, "GetIPList from defined(SIOCGIFCONF)"); -#include static struct ifreq ifreqs[32]; struct ifconf ifconf; memset(&ifconf, 0, sizeof(ifconf));