From 429750092850b18abeccb7bd390e9fb88baf2b1b Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 17 Aug 2021 09:28:17 -0400 Subject: [PATCH] Fix #1024 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 632962f..ea600db 100644 --- a/httplib.h +++ b/httplib.h @@ -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;