diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-11 08:14:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-11 08:14:50 +0000 |
commit | 12cf2d50833ee6da4ae601e2b45a473ff25c0db1 (patch) | |
tree | e92ec6c9f5cd28438d054b53a7e99b5b638b1157 /main/libspf2/musl-res_close.patch | |
parent | 4d479202ab9b8a3dd600d732e85a82eda9143b13 (diff) | |
download | aports-12cf2d50833ee6da4ae601e2b45a473ff25c0db1.tar.bz2 aports-12cf2d50833ee6da4ae601e2b45a473ff25c0db1.tar.xz |
main/libspf2: upgrade to 1.2.10 and fix build with musl
Diffstat (limited to 'main/libspf2/musl-res_close.patch')
-rw-r--r-- | main/libspf2/musl-res_close.patch | 15 |
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 + |