Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2023 11:29:48 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 99db2990f1de - main - emulators/dosbox: fix build with llvm16
Message-ID:  <202307241129.36OBTmM6048984@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307241129.36OBTmM6048984>