mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
17 lines
433 B
Diff
17 lines
433 B
Diff
--- ./src/mongo/util/dns_query_posix-impl.h.orig
|
|
+++ ./src/mongo/util/dns_query_posix-impl.h
|
|
@@ -39,6 +39,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>
|