git: 3b205848fc1c - main - math/spot: Fix build failures on 13.0, 12.3

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 08 May 2022 06:06:52 UTC
The branch main has been updated by yuri:

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

commit 3b205848fc1c114e0cc16f3aba544436fd03cb97
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-05-08 06:06:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-05-08 06:06:13 +0000

    math/spot: Fix build failures on 13.0, 12.3
    
    Reported by:    fallout
---
 math/spot/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/spot/Makefile b/math/spot/Makefile
index 49bab3f3215c..3a331ceb418d 100644
--- a/math/spot/Makefile
+++ b/math/spot/Makefile
@@ -15,6 +15,8 @@ USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-python --disable-static
 
+CXXFLAGS+=	-Drestrict= # fix build problem on 13.0, 12.3 and earlier systems because clang-11 and earlier don't understand the restrict keyword
+
 INSTALL_TARGET=	install-strip
 
 OPTIONS_DEFINE=	DOCS