git: 496e2a1089fd - main - x11/xdtm: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 10:59:02 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=496e2a1089fd182c9d00ea5fb1d99f5c3cc2e029

commit 496e2a1089fd182c9d00ea5fb1d99f5c3cc2e029
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 10:50:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 10:58:48 +0000

    x11/xdtm: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 x11/xdtm/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/x11/xdtm/Makefile b/x11/xdtm/Makefile
index 43a0fbc85ad7..2bfb3e801af0 100644
--- a/x11/xdtm/Makefile
+++ b/x11/xdtm/Makefile
@@ -17,10 +17,14 @@ MAKE_JOBS_UNSAFE=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
-.include <bsd.port.post.mk>
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
+.include <bsd.port.mk>