git: 99db2990f1de - main - emulators/dosbox: fix build with llvm16

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 24 Jul 2023 11:29:48 UTC
The branch main has been updated by fernape:

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

commit 99db2990f1de8e37da59ba06d3570425636361ca
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-07-23 17:14:30 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-07-24 11:29:26 +0000

    emulators/dosbox: fix build with llvm16
    
    Undefine 'register' keyword.
    
    PR:             272659
    Reported by:    Trond.Endrestol@ximalas.info
---
 emulators/dosbox/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile
index 61a22bec3ed4..6edeb5a531e2 100644
--- a/emulators/dosbox/Makefile
+++ b/emulators/dosbox/Makefile
@@ -36,6 +36,11 @@ DEBUGGER_HEAVY_DESC=Enable internal debugger with extra features
 DEBUGGER_ENABLE_CONFIGURE_ON=	--enable-debug=yes
 DEBUGGER_HEAVY_CONFIGURE_ON=	--enable-debug=heavy
 
+.include <bsd.port.options.mk>
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=	-Dregister=
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \
 		${WRKSRC}/docs/dosbox.1