git: e236e1031f35 - main - news/lusernet: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 06:57:19 UTC
The branch main has been updated by bofh:

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

commit e236e1031f35f9c6c4f91d96af63ed810417e190
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 05:03:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 06:57:11 +0000

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

diff --git a/news/lusernet/Makefile b/news/lusernet/Makefile
index d8cf766302e8..7c76a41f7c28 100644
--- a/news/lusernet/Makefile
+++ b/news/lusernet/Makefile
@@ -14,6 +14,12 @@ USES=		gnustep
 USE_GNUSTEP=	back build
 LIB_DEPENDS=	libPantomime.so:mail/pantomime
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+ADDITIONAL_CPPFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/LuserNET.app/LuserNET