This commit is contained in:
yhirose 2021-08-17 09:28:17 -04:00
parent a58f042614
commit 4297500928

View file

@ -2419,7 +2419,7 @@ socket_t create_socket(const char *host, int port, int address_family,
auto service = std::to_string(port); auto service = std::to_string(port);
if (getaddrinfo(host, service.c_str(), &hints, &result)) { if (getaddrinfo(host, service.c_str(), &hints, &result)) {
#ifdef __linux__ #if defined __linux__ && !defined __ANDROID__
res_init(); res_init();
#endif #endif
return INVALID_SOCKET; return INVALID_SOCKET;