blob: 09bda7b64376536a8c02c2b81de000a2473e625d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>
|