musl does not have res_close and if it had, it would have been a NOP diff --git a/src/libspf2/spf_dns_resolv.c b/src/libspf2/spf_dns_resolv.c index 8f795ce..e3563d8 100644 --- a/src/libspf2/spf_dns_resolv.c +++ b/src/libspf2/spf_dns_resolv.c @@ -606,7 +606,7 @@ SPF_dns_resolv_free(SPF_dns_server_t *spf_dns_server) { SPF_ASSERT_NOTNULL(spf_dns_server); -#if ! HAVE_DECL_RES_NINIT +#if ! HAVE_DECL_RES_NINIT && HAVE_RES_CLOSE res_close(); #endif