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;