diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2023-08-14 02:14:45 +0900 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2023-08-14 02:38:04 +0900 |
commit | 182235082adf5e652423da7efae779c269b0bfa3 (patch) | |
tree | 3ea76473cd272dee5f03b7bace6c41240c5d0279 /mail/cyrus-imapd30 | |
parent | ba7720b45c318713be97c1739af97d468e5241eb (diff) | |
download | freebsd-ports-182235082adf5e652423da7efae779c269b0bfa3.zip |
mail/cyrus-imapd{25,30,32}: Fix build with more recent Perl
PR: 273093
Reported by: delphij
Submitted by: delphij
Diffstat (limited to 'mail/cyrus-imapd30')
-rw-r--r-- | mail/cyrus-imapd30/files/patch-lib_assert.h | 14 |
1 files changed, 8 insertions, 6 deletions
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 */ |