blob: 070411ab9f4a0e8083e7f077eb5e692fe38aa9c4 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 5994023a03634dfc0318976c293e7391fe6aa060 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 24 Aug 2018 12:56:22 -0700
4Subject: [PATCH 1/2] Support deprecated resolver functions
5
6Needed for musl libc
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/mongo/util/dns_query_posix-impl.h | 6 ++++++
12 1 file changed, 6 insertions(+)
13
14diff --git a/src/mongo/util/dns_query_posix-impl.h b/src/mongo/util/dns_query_posix-impl.h
15index d19958010c..bbca3309ed 100644
16--- a/src/mongo/util/dns_query_posix-impl.h
17+++ b/src/mongo/util/dns_query_posix-impl.h
18@@ -53,6 +53,12 @@
19
20 #include <boost/noncopyable.hpp>
21
22+#ifndef res_ninit
23+#define res_nclose(arg)
24+#define res_ninit(arg) res_init()
25+#define res_nsearch(sta, nam, clas, typ, ans, alen) res_search(nam, clas, typ, ans, alen)
26+#endif
27+
28 namespace mongo {
29 namespace dns {
30 // The anonymous namespace is safe, in this header, as it is not really a header. It is only used
31--
322.18.0
33