1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/non-free/mongodb/fix-resolv.patch
Drew DeVault 8a901de31f community/mongodb: expunge nonfree software
Upstream has switched to a nonfree license.
2019-04-03 08:49:55 +00:00

17 lines
467 B
Diff

--- 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>