From afa15d6dcf57151fc130ce8c5c916b3c9d809d26 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sat, 13 Mar 2021 18:31:42 -0800 Subject: [PATCH] mingw build problem fix attempt --- ixwebsocket/IXDNSLookup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ixwebsocket/IXDNSLookup.cpp b/ixwebsocket/IXDNSLookup.cpp index 938d75e3..9a2874f1 100644 --- a/ixwebsocket/IXDNSLookup.cpp +++ b/ixwebsocket/IXDNSLookup.cpp @@ -24,6 +24,12 @@ #include #include +// mingw build quirks +#if defined(_WIN32) && defined(__GNUC__) +#define AI_NUMERICSERV NI_NUMERICSERV +#define AI_ADDRCONFIG LUP_ADDRCONFIG +#endif + namespace ix { const int64_t DNSLookup::kDefaultWait = 1; // ms