summaryrefslogtreecommitdiff
path: root/net/megacmd/files/patch-sdk_src_http.cpp
diff options
context:
space:
mode:
authorkikadf <kikadf.01@gmail.com>2024-08-07 13:41:14 +0200
committerZsolt Udvari <uzsolt@FreeBSD.org>2024-08-07 13:44:35 +0200
commite3d0ef9d46353a8ecebfa0accdb225fca22dcb45 (patch)
treeb2bebd5e88ecc441751a18a08d7310d893e434fa /net/megacmd/files/patch-sdk_src_http.cpp
parentmultimedia/qmmp-qt6: unbreak packaging after CDDA option removal (diff)
net/megacmd: update to 1.7.0
Add DragonFly and NetBSD-specific patches to better maintain. PR: 279273 Approved by: submitter is maintainer
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))