git: 48e3e3be309b - main - news/golded+: Fix build with llvm16

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

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

commit 48e3e3be309b882607bd340a5376ff301ea422be
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 18:18:47 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 18:30:38 +0000

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

diff --git a/news/golded+/Makefile b/news/golded+/Makefile
index 14e8b2bc398e..22e3ae2b49e6 100644
--- a/news/golded+/Makefile
+++ b/news/golded+/Makefile
@@ -27,6 +27,12 @@ OPTIONS_DEFINE=	DOCS EXAMPLES
 DOCS_SUB_LIST=	NOTEWORK="Please read the ${DOCSDIR}/notework.txt before using ${PORTNAME}"
 DOCS_SUB_LIST_OFF=	NOTEWORK=""
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 	@${SED}\
 		-e 's,^\(#define __GVER_VENDOR_NAME__\).*,\1 "",'\