[BACK]Return to patch-aj CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / tct / patches

File: [cvs.NetBSD.org] / pkgsrc / security / tct / patches / patch-aj (download)

Revision 1.4, Thu Mar 19 08:34:53 2015 UTC (4 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-, HEAD
Changes since 1.3: +4 -2 lines

Fix build on NetBSD > 3. Add patch comments.

$NetBSD: patch-aj,v 1.4 2015/03/19 08:34:53 dholland Exp $

Recognize NetBSD versions.

--- src/major_minor/makedefs.orig	2001-10-04 12:46:24.000000000 -0700
+++ src/major_minor/makedefs
@@ -2,6 +2,12 @@ SYSTEM=`(uname -s) 2>/dev/null`
 RELEASE=`(uname -r) 2>/dev/null`
 
 case "$SYSTEM.$RELEASE" in
+   NetBSD.1*)	DEFS="-DNETBSD1"
+		;;
+   NetBSD.2*)	DEFS="-DNETBSD2"
+		;;
+   NetBSD.[3-9]*)	DEFS="-DNETBSD2"
+		;;
   FreeBSD.2*)   DEFS="-DFREEBSD2"
                 ;;
   FreeBSD.3*)   DEFS="-DFREEBSD3"