mingw build problem fix attempt

This commit is contained in:
Benjamin Sergeant 2021-03-13 18:31:42 -08:00
parent 432a202c07
commit afa15d6dcf

View File

@ -24,6 +24,12 @@
#include <string.h>
#include <thread>
// 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