Include appropriate header for basename(3), fixes the build with clang 15

ok ajacoutot@ (maintainer)
This commit is contained in:
jca 2023-01-11 17:43:49 +00:00
parent df496c3cdd
commit ac26d46a16
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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 <config.h>
+#include <libgen.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif