diff options
author | Wynn Wolf Arbor | 2020-06-10 12:16:52 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-06-10 12:16:52 +0200 |
commit | 74066c403a6ee86ab6d97d0fbf91c457b726be6a (patch) | |
tree | 8f20313c33d7a3b03d8434c57b5791303ca5b740 /mail-filter/libmilter/files/libmilter-glibc-2.30.patch | |
parent | 0761346aaefa642b3b8008299bf6cc239fb53751 (diff) | |
download | pramantha-74066c403a6ee86ab6d97d0fbf91c457b726be6a.tar.gz |
mail-filter/libmilter: Add 1.0.2_p1
This ebuild contains fixes for musl-based systems. See [1].
[1] https://github.com/gentoo/gentoo/pull/16139
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Diffstat (limited to 'mail-filter/libmilter/files/libmilter-glibc-2.30.patch')
-rw-r--r-- | mail-filter/libmilter/files/libmilter-glibc-2.30.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mail-filter/libmilter/files/libmilter-glibc-2.30.patch b/mail-filter/libmilter/files/libmilter-glibc-2.30.patch new file mode 100644 index 0000000..5ceac84 --- /dev/null +++ b/mail-filter/libmilter/files/libmilter-glibc-2.30.patch @@ -0,0 +1,25 @@ +--- a/libmilter/sm_gethost.c 2014-03-05 01:59:45.000000000 +0100 ++++ b/libmilter/sm_gethost.c 2019-11-14 18:59:41.885353232 +0100 +@@ -51,18 +51,20 @@ sm_getipnodebyname(name, family, flags, + { + bool resv6 = true; + struct hostent *h; +- ++#ifdef RES_USE_INET6 + if (family == AF_INET6) + { + /* From RFC2133, section 6.1 */ + resv6 = bitset(RES_USE_INET6, _res.options); + _res.options |= RES_USE_INET6; + } ++#endif + SM_SET_H_ERRNO(0); + h = gethostbyname(name); ++#ifdef RES_USE_INET6 + if (family == AF_INET6 && !resv6) + _res.options &= ~RES_USE_INET6; +- ++#endif + /* the function is supposed to return only the requested family */ + if (h != NULL && h->h_addrtype != family) + { |