git: b997f300ebba - main - devel/rubygem-mmap2: Fix build with llvm16

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

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

commit b997f300ebba0c6ffd467394efe8afa0fa8bb02a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 13:25:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:34 +0000

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

diff --git a/devel/rubygem-mmap2/Makefile b/devel/rubygem-mmap2/Makefile
index b9a895914e1f..864ed2bac381 100644
--- a/devel/rubygem-mmap2/Makefile
+++ b/devel/rubygem-mmap2/Makefile
@@ -12,4 +12,10 @@ LICENSE=	RUBY
 
 USES=		gem
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
+
 .include <bsd.port.mk>