Fixed cygwin compilation

This commit is contained in:
Deve 2020-07-10 06:09:38 +02:00
parent 22987062d2
commit 1fafe910cb
2 changed files with 2 additions and 2 deletions

View File

@ -563,7 +563,7 @@ void NetworkConfig::fillStunList(std::vector<std::pair<std::string, int> >* l,
}
g_list = NULL;
#else
#elif !defined(__CYGWIN__)
#define SRV_WEIGHT (RRFIXEDSZ+2)
#define SRV_PORT (RRFIXEDSZ+4)
#define SRV_SERVER (RRFIXEDSZ+6)

View File

@ -696,7 +696,7 @@ bool ConnectToServer::detectPort()
if (port_from_dns != 0)
break;
}
#else
#elif !defined(__CYGWIN__)
unsigned char response[512] = {};
const std::string& utf8name = StringUtils::wideToUtf8(m_server->getName());
int response_len = res_query(utf8name.c_str(), C_IN, T_TXT, response, 512);