aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/musl-res_close.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libspf2/musl-res_close.patch')
-rw-r--r--main/libspf2/musl-res_close.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/libspf2/musl-res_close.patch b/main/libspf2/musl-res_close.patch
new file mode 100644
index 0000000000..97c3431afd
--- /dev/null
+++ b/main/libspf2/musl-res_close.patch
@@ -0,0 +1,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
+