diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-27 22:41:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-27 22:41:01 +0100 |
commit | f660c6de84558324d784218831d8f0782ee41e2e (patch) | |
tree | c1f2aa79617d0ceaaff49d71603abc386aae2c37 /mail-filter/libspf2/files/libspf2-1.2.11-musl.patch | |
parent | 95461df035e3867364495f065e5e805bf629b2d7 (diff) |
gentoo resync : 27.10.2021
Diffstat (limited to 'mail-filter/libspf2/files/libspf2-1.2.11-musl.patch')
-rw-r--r-- | mail-filter/libspf2/files/libspf2-1.2.11-musl.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail-filter/libspf2/files/libspf2-1.2.11-musl.patch b/mail-filter/libspf2/files/libspf2-1.2.11-musl.patch new file mode 100644 index 000000000000..9867dc0d1b4f --- /dev/null +++ b/mail-filter/libspf2/files/libspf2-1.2.11-musl.patch @@ -0,0 +1,30 @@ +assorted fixes for musl + +--- a/src/include/spf_dns.h ++++ a/src/include/spf_dns.h +@@ -99,11 +99,13 @@ + */ + + #if !defined(HAVE_NETDB_H) && !defined(_WIN32) +-#define NETDB_SUCCESS 0 + #define HOST_NOT_FOUND 1 /**< NXDOMAIN (authoritative answer)*/ + #define TRY_AGAIN 2 /**< SERVFAIL (no authoritative answer)*/ + #define NO_RECOVERY 3 /**< invalid/unimplmeneted query */ + #define NO_DATA 4 /**< host found, but no RR of req type*/ ++#endif ++#ifndef NETDB_SUCCESS ++#define NETDB_SUCCESS 0 + #endif + typedef int SPF_dns_stat_t; + +--- 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 + |