From de23ce11b51847b7b8bfc10ecf5926827516ac5a Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 9 Dec 2016 23:38:14 +0100 Subject: [PATCH] Remove old unused AI_V4MAPPED flag to getaddrinfo --- drivers/unix/ip_unix.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp index 42c93c35175..e4860dc6d84 100644 --- a/drivers/unix/ip_unix.cpp +++ b/drivers/unix/ip_unix.cpp @@ -37,9 +37,6 @@ #ifndef AI_ADDRCONFIG #define AI_ADDRCONFIG 0x00000400 #endif - #ifndef AI_V4MAPPED - #define AI_V4MAPPED 0x00000800 - #endif #ifdef UWP_ENABLED #include #include @@ -97,12 +94,7 @@ IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, Type p_type) { hints.ai_flags = 0; } else { hints.ai_family = AF_UNSPEC; -#ifdef ANDROID_ENABLED - // AI_V4MAPPED is not supported by android getaadrinfo hints.ai_flags = AI_ADDRCONFIG; -#else - hints.ai_flags = (AI_V4MAPPED | AI_ADDRCONFIG); -#endif }; int s = getaddrinfo(p_hostname.utf8().get_data(), NULL, &hints, &result);