From 8c7becbc8f5c32e3d2e90e0305a3b0fdef7cf5f1 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 7 Jan 2006 16:15:46 +0000 Subject: Fix build on NetBSD with statvfs. Remove BROKEN_IN. --- shells/ast-ksh/Makefile | 4 +--- shells/ast-ksh/distinfo | 3 ++- shells/ast-ksh/patches/patch-ac | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 shells/ast-ksh/patches/patch-ac (limited to 'shells') diff --git a/shells/ast-ksh/Makefile b/shells/ast-ksh/Makefile index 35759043f39..395cb88cdfb 100644 --- a/shells/ast-ksh/Makefile +++ b/shells/ast-ksh/Makefile @@ -1,9 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2006/01/04 05:27:20 schmonz Exp $ +# $NetBSD: Makefile,v 1.16 2006/01/07 16:15:46 wiz Exp $ # .include "Makefile.common" PKGREVISION= 1 -BROKEN_IN= pkgsrc-2005Q4 - .include "../../mk/bsd.pkg.mk" diff --git a/shells/ast-ksh/distinfo b/shells/ast-ksh/distinfo index 59811a88644..573f8540755 100644 --- a/shells/ast-ksh/distinfo +++ b/shells/ast-ksh/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2005/02/24 13:14:41 agc Exp $ +$NetBSD: distinfo,v 1.8 2006/01/07 16:15:46 wiz Exp $ SHA1 (INIT.2003-07-24.tgz) = 92946d1b522345b6c8ac25cb11e4b621a95a9150 RMD160 (INIT.2003-07-24.tgz) = 27a6713f239632dbc35dacd1c41c050141fdc14a @@ -8,3 +8,4 @@ RMD160 (ast-ksh.2003-07-24.tgz) = 6ed4f9dbfaf0d57b785029c98c2b4a163c9d782e Size (ast-ksh.2003-07-24.tgz) = 1459120 bytes SHA1 (patch-aa) = dd3e5cc9b80ae6e24faed3f15af354cf34fb16a0 SHA1 (patch-ab) = adbbdb5deeb15c1eeb38bec5685d9e6331b2b964 +SHA1 (patch-ac) = 1bb9683cb3a652c9e13d7626d4e6558464209a44 diff --git a/shells/ast-ksh/patches/patch-ac b/shells/ast-ksh/patches/patch-ac new file mode 100644 index 00000000000..9c25b894d98 --- /dev/null +++ b/shells/ast-ksh/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.1 2006/01/07 16:15:46 wiz Exp $ + +--- src/lib/libast/port/mnt.c.orig 2002-09-26 16:33:59.000000000 +0000 ++++ src/lib/libast/port/mnt.c +@@ -146,6 +146,11 @@ set(register Header_t* hp, const char* f + #include /* expect some macro redefinitions here */ + #include + ++#if defined(__NetBSD__) && (__NetBSD_Version__ > 299000000) ++#define statfs statvfs ++#define f_flags f_flag ++#endif ++ + typedef struct + { + Header_t hdr; -- cgit v1.2.3