From e3d0ef9d46353a8ecebfa0accdb225fca22dcb45 Mon Sep 17 00:00:00 2001 From: kikadf Date: Wed, 7 Aug 2024 13:41:14 +0200 Subject: net/megacmd: update to 1.7.0 Add DragonFly and NetBSD-specific patches to better maintain. PR: 279273 Approved by: submitter is maintainer --- net/megacmd/files/patch-sdk_src_http.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/megacmd/files/patch-sdk_src_http.cpp (limited to 'net/megacmd/files/patch-sdk_src_http.cpp') 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)) -- cgit v1.2.3