git: 1e99fd383698 - main - x11/wdm: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 18:56:04 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=1e99fd383698437d4ec00ceb1dc76d03d59fa434 commit 1e99fd383698437d4ec00ceb1dc76d03d59fa434 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-05 18:48:51 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-05 18:55:51 +0000 x11/wdm: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- x11/wdm/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index 01091b42e355..f1a736db4fea 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -50,6 +50,12 @@ WDMDIR= ${PREFIX}/lib/X11/wdm PAM_CONFIGURE_OFF= --disable-pam PAM_CONFIGURE_ON= --with-pamdir=${LOCALBASE}/etc/pam.d/ +.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|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/KillConsole