From ac26d46a168b3530d6a87ff4867db496def2986d Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 11 Jan 2023 17:43:49 +0000 Subject: [PATCH] Include appropriate header for basename(3), fixes the build with clang 15 ok ajacoutot@ (maintainer) --- mail/cyrus-imapd/Makefile | 1 + .../cyrus-imapd/patches/patch-imap_relocate_by_id_c | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 mail/cyrus-imapd/patches/patch-imap_relocate_by_id_c diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile index e856c529cb8..3a821916139 100644 --- a/mail/cyrus-imapd/Makefile +++ b/mail/cyrus-imapd/Makefile @@ -3,6 +3,7 @@ PORTROACH= limitw:1,even COMMENT= Cyrus IMAP server V= 3.6.0 +REVISION= 0 DISTNAME= cyrus-imapd-${V} SHARED_LIBS += cyrus 0.0 # 0.0 diff --git a/mail/cyrus-imapd/patches/patch-imap_relocate_by_id_c b/mail/cyrus-imapd/patches/patch-imap_relocate_by_id_c new file mode 100644 index 00000000000..a15260e28b5 --- /dev/null +++ b/mail/cyrus-imapd/patches/patch-imap_relocate_by_id_c @@ -0,0 +1,13 @@ +Include appropriate header for basename(3). + +Index: imap/relocate_by_id.c +--- imap/relocate_by_id.c.orig ++++ imap/relocate_by_id.c +@@ -42,6 +42,7 @@ + + #include + ++#include + #ifdef HAVE_UNISTD_H + #include + #endif