aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/musl-res_close.patch
blob: 97c3431afd2e811bbfdf8171de4110fca3e16d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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