mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fix #1024
This commit is contained in:
parent
a58f042614
commit
4297500928
1 changed files with 1 additions and 1 deletions
|
@ -2419,7 +2419,7 @@ socket_t create_socket(const char *host, int port, int address_family,
|
|||
auto service = std::to_string(port);
|
||||
|
||||
if (getaddrinfo(host, service.c_str(), &hints, &result)) {
|
||||
#ifdef __linux__
|
||||
#if defined __linux__ && !defined __ANDROID__
|
||||
res_init();
|
||||
#endif
|
||||
return INVALID_SOCKET;
|
||||
|
|
Loading…
Reference in a new issue