summaryrefslogtreecommitdiff
path: root/experimental/slurm/musl-res_n.patch
blob: 4eb99a60e0d114131ac76464e816aff346d2308e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -ur a/src/common/slurm_resolv.c b/src/common/slurm_resolv.c
--- a/src/common/slurm_resolv.c	2024-12-26 19:55:15.785564425 +0000
+++ b/src/common/slurm_resolv.c	2024-12-26 19:57:09.764381591 +0000
@@ -56,6 +56,18 @@
 	return slurm_sort_uint16_list_asc(&ctl1->priority, &ctl2->priority);
 }
 
+#ifndef res_ninit
+#define res_ninit(X) (X)
+#endif
+
+#ifndef res_nsearch
+#define res_nsearch(X,D,I,S,B,L)	res_search(D,I,S,B,L)
+#endif
+
+#ifndef res_nclose
+#define res_nclose(X) (X)
+#endif
+
 extern list_t *resolve_ctls_from_dns_srv(void)
 {
 	struct __res_state res;