git: e56cb1f7a29e - main - graphics/dspdfviewer: Fix builds in 13.3 and 14.1.

From: Santhosh Raju <fox_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 20:51:37 UTC
The branch main has been updated by fox:

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

commit e56cb1f7a29ed63d9939da158b3e05298523ccda
Author:     Santhosh Raju <fox@FreeBSD.org>
AuthorDate: 2024-08-04 17:42:03 +0000
Commit:     Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2024-08-04 20:35:54 +0000

    graphics/dspdfviewer: Fix builds in 13.3 and 14.1.
---
 graphics/dspdfviewer/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile
index 2fae98627929..1386d1fdcce0 100644
--- a/graphics/dspdfviewer/Makefile
+++ b/graphics/dspdfviewer/Makefile
@@ -62,12 +62,12 @@ CFLAGS+=       -Wno-error=bitwise-instead-of-logical
 .endif
 
 # Fixes build failure for Clang 16.0.6
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400059 && ${CHOSEN_COMPILER_TYPE} == clang
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=       -Wno-error=unsafe-buffer-usage
 .endif
 
 # Fixes build failure for Clang 18.1.4
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500018 && ${CHOSEN_COMPILER_TYPE} == clang
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1401000 || ${OSVERSION} >= 1500018) && ${CHOSEN_COMPILER_TYPE} == clang
 CFLAGS+=       -Wno-error=switch-default
 .endif