0001-Support-deprecated-resolver-functions.patch 990 B

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