summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-24 09:47:54 +0000
committernia <nia@pkgsrc.org>2022-05-24 09:47:54 +0000
commit451e6e391aa897885e693712035c9ff6f73c9a10 (patch)
treecbd7ba932c480d744be9caa77119ff2059cb3ec6 /security
parent690de90f72a15f42cb348c0d7540bde06d1f8b2f (diff)
downloadpkgsrc-451e6e391aa897885e693712035c9ff6f73c9a10.tar.gz
sudo: Use OPSYS_VERSION
Diffstat (limited to 'security')
-rw-r--r--security/sudo/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 49e1ba92a7c..d4a9a737406 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].*-*)