aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/ip_unix.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-12-09 23:38:14 +0100
committerFabio Alessandrelli2017-01-04 00:46:33 +0100
commitac9f0aea1a9b6d21dd8700a00472db2222edce4d (patch)
tree987ce981953950900ac4c2202d96a55edfc7a816 /drivers/unix/ip_unix.cpp
parent3bb1709fd7900958ba784ecc82bd04ad21997593 (diff)
downloadgodot-ac9f0aea1a9b6d21dd8700a00472db2222edce4d.tar.gz
godot-ac9f0aea1a9b6d21dd8700a00472db2222edce4d.tar.zst
godot-ac9f0aea1a9b6d21dd8700a00472db2222edce4d.zip
Diffstat (limited to 'drivers/unix/ip_unix.cpp')
-rw-r--r--drivers/unix/ip_unix.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp
index ab0c4ea52..c17deafc6 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 WINRT_ENABLED
#include <ws2tcpip.h>
#include <winsock2.h>
@@ -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);