aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb/fix-resolv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/mongodb/fix-resolv.patch')
-rw-r--r--community/mongodb/fix-resolv.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/mongodb/fix-resolv.patch b/community/mongodb/fix-resolv.patch
new file mode 100644
index 0000000000..09bda7b643
--- /dev/null
+++ b/community/mongodb/fix-resolv.patch
@@ -0,0 +1,17 @@
+--- mongodb-src-r3.6.1/src/mongo/util/dns_query_posix-impl.h.orig
++++ mongodb-src-r3.6.1/src/mongo/util/dns_query_posix-impl.h
+@@ -38,6 +38,14 @@
+ #include <resolv.h>
+ // clang-format on
+
++// Support deprecated resolver, as in musl libc
++#ifndef res_ninit
++#define res_nclose(arg)
++#define res_ninit(arg) res_init()
++#define res_nsearch(sta, nam, clas, typ, ans, alen) res_search(nam, clas, typ, ans, alen)
++#endif
++
++
+ #include <stdio.h>
+
+ #include <iostream>