summaryrefslogtreecommitdiff
path: root/net/megacmd/files/patch-sdk_src_http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/megacmd/files/patch-sdk_src_http.cpp')
-rw-r--r--net/megacmd/files/patch-sdk_src_http.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/megacmd/files/patch-sdk_src_http.cpp b/net/megacmd/files/patch-sdk_src_http.cpp
new file mode 100644
index 000000000000..45e342b59077
--- /dev/null
+++ b/net/megacmd/files/patch-sdk_src_http.cpp
@@ -0,0 +1,14 @@
+--- sdk/src/http.cpp.orig 2024-05-17 14:19:43 UTC
++++ sdk/src/http.cpp
+@@ -270,7 +270,11 @@ void HttpIO::getMEGADNSservers(string *dnsservers, boo
+ hints.ai_family = AF_UNSPEC;
+
+ #ifndef __MINGW32__
++#if defined(__NetBSD__) || defined(__OpenBSD__)
++ hints.ai_flags = AI_ADDRCONFIG;
++#else
+ hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG;
++#endif
+ #endif
+
+ if (!getaddrinfo("ns.mega.co.nz", NULL, &hints, &aiList))