From 62a162fe42e645d87fd3c4f09e0a4eed12a7939b Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 9 Oct 2022 21:21:39 +0200 Subject: [PATCH] rmilter: fix build with gcc>=11 --- srcpkgs/rmilter/patches/fix-gcc11.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/rmilter/patches/fix-gcc11.patch diff --git a/srcpkgs/rmilter/patches/fix-gcc11.patch b/srcpkgs/rmilter/patches/fix-gcc11.patch new file mode 100644 index 00000000000..a9bd6601a88 --- /dev/null +++ b/srcpkgs/rmilter/patches/fix-gcc11.patch @@ -0,0 +1,20 @@ +--- a/compat/blake2.h ++++ b/compat/blake2.h +@@ -61,7 +61,7 @@ + uint8_t personal[BLAKE2S_PERSONALBYTES]; // 32 + } blake2s_param; + +- BLAKE2_ALIGN( 64 ) typedef struct __blake2s_state ++ typedef struct BLAKE2_ALIGN( 64 ) __blake2s_state + { + uint32_t h[8]; + uint32_t t[2]; +@@ -86,7 +86,7 @@ + uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64 + } blake2b_param; + +- BLAKE2_ALIGN( 64 ) typedef struct __blake2b_state ++ typedef struct BLAKE2_ALIGN( 64 ) __blake2b_state + { + uint64_t h[8]; + uint64_t t[2];