diff options
author | Wynn Wolf Arbor | 2020-06-10 12:21:44 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-06-10 12:21:44 +0200 |
commit | 21cce7783e0707f637b75c325d9cb2b5c6e2a479 (patch) | |
tree | ea918d94bca6acbbcd1336cc8fd8a56a176fef9f /mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch | |
parent | 74066c403a6ee86ab6d97d0fbf91c457b726be6a (diff) | |
download | pramantha-21cce7783e0707f637b75c325d9cb2b5c6e2a479.tar.gz |
mail-filter/opendkim: Add 2.10.3-r18
This ebuild contains fixes for musl-based systems. See [1].
[1] https://github.com/gentoo/gentoo/pull/16140
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Diffstat (limited to 'mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch')
-rw-r--r-- | mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch b/mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch new file mode 100644 index 0000000..bbb4eb8 --- /dev/null +++ b/mail-filter/opendkim/files/opendkim-2.10.3-define-P-macro-in-libvbr.patch @@ -0,0 +1,40 @@ +From 50a91575cee8d08682f090d2d6bdb4806eccfbcd Mon Sep 17 00:00:00 2001 +From: Wynn Wolf Arbor <wolf@oriole.systems> +Date: Wed, 10 Jun 2020 09:37:03 +0200 +Subject: [PATCH] Define __P() macro in libvbr + +Definitions for this macro have been added throughout the codebase in +commits 91e7407d, 705948fd, 227fa252, 842c1733, and b730bdc0, but one +was still missing from libvbr. glibc contains a definition for legacy +reasons, but other libcs might not. Particularly, the musl libc does not +contain it, leading to build errors when enabling support for VBR. + +Add a definition for __P() to vbr.h to fix this. +--- + libvbr/vbr.h | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/libvbr/vbr.h b/libvbr/vbr.h +index 4bef1f36..3bcb9212 100644 +--- a/libvbr/vbr.h ++++ b/libvbr/vbr.h +@@ -12,6 +12,16 @@ + /* system includes */ + #include <sys/types.h> + ++#ifdef __STDC__ ++# ifndef __P ++# define __P(x) x ++# endif /* ! __P */ ++#else /* __STDC__ */ ++# ifndef __P ++# define __P(x) () ++# endif /* ! __P */ ++#endif /* __STDC__ */ ++ + /* strings */ + #define VBR_ALL "all" + #define VBR_INFOHEADER "VBR-Info" +-- +2.27.0 + |