git: 69b172f99f01 - main - devel/p5-Term-EditLine: Fix build with clang15

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Thu, 16 Feb 2023 13:15:14 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=69b172f99f01c1f428c0db5f065dc3b5cc9a7275

commit 69b172f99f01c1f428c0db5f065dc3b5cc9a7275
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-02-16 13:14:45 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-02-16 13:14:54 +0000

    devel/p5-Term-EditLine: Fix build with clang15
    
    Notified by:    pkg-fallout
---
 devel/p5-Term-EditLine/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/p5-Term-EditLine/Makefile b/devel/p5-Term-EditLine/Makefile
index 34534eb9b3a7..241f3dda495a 100644
--- a/devel/p5-Term-EditLine/Makefile
+++ b/devel/p5-Term-EditLine/Makefile
@@ -15,6 +15,11 @@ LICENSE_COMB=	dual
 USES=		libedit perl5 pkgconfig
 USE_PERL5=	configure
 
+post-configure:
+	@${REINPLACE_CMD} \
+		-e 's|\(iv_return.*\)\(EL_BUILTIN_GETCFN\)|\1(IV)\2|' \
+		${WRKSRC}/const-c.inc
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Term/EditLine/EditLine.so