From 182235082adf5e652423da7efae779c269b0bfa3 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 14 Aug 2023 02:14:45 +0900 Subject: mail/cyrus-imapd{25,30,32}: Fix build with more recent Perl PR: 273093 Reported by: delphij Submitted by: delphij --- mail/cyrus-imapd30/files/patch-lib_assert.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'mail/cyrus-imapd30') diff --git a/mail/cyrus-imapd30/files/patch-lib_assert.h b/mail/cyrus-imapd30/files/patch-lib_assert.h index 28e06f17a2e7..d08160833f7c 100644 --- a/mail/cyrus-imapd30/files/patch-lib_assert.h +++ b/mail/cyrus-imapd30/files/patch-lib_assert.h @@ -1,9 +1,10 @@ ---- lib/assert.h.orig 2017-09-02 01:09:05 UTC +--- lib/assert.h.orig 2023-02-12 23:06:46 UTC +++ lib/assert.h -@@ -43,6 +43,10 @@ +@@ -43,11 +43,21 @@ #ifndef INCLUDED_ASSERT_H #define INCLUDED_ASSERT_H ++#ifndef PERL_POLLUTE +#ifdef __cplusplus +extern "C" { +#endif @@ -11,12 +12,13 @@ #ifdef __STDC__ #define assert(ex) {if (!(ex))assertionfailed(__FILE__, __LINE__, #ex);} void assertionfailed(const char *file, int line, const char *expr); -@@ -50,4 +54,8 @@ void assertionfailed(const char *file, i + #else #define assert(ex) {if (!(ex))assertionfailed(__FILE__, __LINE__, (char*)0);} - #endif - ++#endif ++ +#ifdef __cplusplus +} +#endif -+ + #endif + #endif /* INCLUDED_ASSERT_H */ -- cgit v1.2.3