mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
15 lines
457 B
Diff
15 lines
457 B
Diff
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
|
|
|