git: 2d8686435c4c - main - editors/uemacs: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 02 Aug 2023 18:53:56 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2d8686435c4c241cd64df70dcc7249ecc2cb1d07

commit 2d8686435c4c241cd64df70dcc7249ecc2cb1d07
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 17:17:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 18:53:44 +0000

    editors/uemacs: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 editors/uemacs/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile
index fc1bede0e34c..81179c42a5fb 100644
--- a/editors/uemacs/Makefile
+++ b/editors/uemacs/Makefile
@@ -21,6 +21,12 @@ EXTRACT_BEFORE_ARGS=	-Lq
 
 CFLAGS+=		-Wno-int-conversion
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
 	@${REINPLACE_CMD} -e 's|-ltermcap|${LDFLAGS} -lncurses|g' \