aboutsummaryrefslogtreecommitdiffstats
path: root/net/megacmd/files/patch-sdk_src_http.cpp
blob: 45e342b590771f96875d7f829ecdc81069885365 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))