Fixed cygwin compilation
This commit is contained in:
parent
22987062d2
commit
1fafe910cb
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user