From e29a3270ff33e1fcdd6cfda23fad1fdd31ab9aac Mon Sep 17 00:00:00 2001 From: nia Date: Tue, 24 May 2022 09:47:54 +0000 Subject: [PATCH] sudo: Use OPSYS_VERSION --- security/sudo/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 49e1ba92a7cd..d4a9a7374061 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.188 2022/05/14 05:40:59 adam Exp $ +# $NetBSD: Makefile,v 1.189 2022/05/24 09:47:54 nia Exp $ DISTNAME= sudo-1.9.10 CATEGORIES= security @@ -41,7 +41,7 @@ CONFIGURE_ENV+= ax_cv_check_cflags___static_libgcc=no PLIST.noexec= yes .endif -.if !empty(MACHINE_PLATFORM:MNetBSD-[7-9].*-*) +.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} > 070000 CFLAGS+= -D_OPENBSD_SOURCE=1 .endif .if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*)