git: a4ca547fd445 - main - graphics/dspdfviewer: Unbreak build for Release 12.4 (1204000) and above.

From: Santhosh Raju <fox_at_FreeBSD.org>
Date: Wed, 22 Mar 2023 07:53:07 UTC
The branch main has been updated by fox:

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

commit a4ca547fd445e992a2f4599e60b651f754546b76
Author:     Santhosh Raju <fox@FreeBSD.org>
AuthorDate: 2023-03-22 07:50:06 +0000
Commit:     Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2023-03-22 07:50:06 +0000

    graphics/dspdfviewer: Unbreak build for Release 12.4 (1204000) and above.
---
 graphics/dspdfviewer/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile
index 6da1d50e5e97..bbc3fd86c8ae 100644
--- a/graphics/dspdfviewer/Makefile
+++ b/graphics/dspdfviewer/Makefile
@@ -51,7 +51,7 @@ CFLAGS+=	-Wno-error=extra-semi-stmt
 .endif
 
 # Fixes build failure for Clang 11.0.0
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300111 && ${CHOSEN_COMPILER_TYPE} == clang
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1300111 || ${OSVERSION} >= 1204000) && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=	-Wno-error=suggest-destructor-override
 CFLAGS+=	-Wno-error=suggest-override
 .endif