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));