git: 6ed80586a346 - main - editors/uzap: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 20 Jul 2023 17:43:10 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6ed80586a3460340859a61befb4a08556ab0f39a

commit 6ed80586a3460340859a61befb4a08556ab0f39a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 13:14:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:33 +0000

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

diff --git a/editors/uzap/Makefile b/editors/uzap/Makefile
index e2d886d7af99..c6d40adf57de 100644
--- a/editors/uzap/Makefile
+++ b/editors/uzap/Makefile
@@ -18,6 +18,13 @@ LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
 USES=		ncurses
 
 NO_WRKSUBDIR=	yes
+
 PLIST_FILES=	bin/uzap man/man1/uzap.1.gz
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>