From e667b50bd3ce67073131bd4ecf9792030adc7fc8 Mon Sep 17 00:00:00 2001 From: minskim Date: Sun, 15 Aug 2004 03:25:24 +0000 Subject: Use statvfs instead of statfs on NetBSD>=2.0D. --- x11/filerunner/distinfo | 3 ++- x11/filerunner/patches/patch-ab | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 x11/filerunner/patches/patch-ab (limited to 'x11/filerunner') diff --git a/x11/filerunner/distinfo b/x11/filerunner/distinfo index 0306ae17b38..b7cad7de506 100644 --- a/x11/filerunner/distinfo +++ b/x11/filerunner/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.3 2003/09/25 22:01:26 recht Exp $ +$NetBSD: distinfo,v 1.4 2004/08/15 03:25:24 minskim Exp $ SHA1 (FileRunner-2.5.1.tar.gz) = ef607b3229491c1a6608fac67ce584d01a50c69d Size (FileRunner-2.5.1.tar.gz) = 122795 bytes SHA1 (patch-aa) = 3e929372fee6620c23022e5eaecd33830d9151f7 +SHA1 (patch-ab) = 88076263693fc7e379adccd6dac4c17e66519d46 SHA1 (patch-ac) = fdef8612ff1ea187fbe26cb203f8f3f006032ef3 SHA1 (patch-ad) = cf7999d58ec441b03a3baa5d8097b26781bd00eb diff --git a/x11/filerunner/patches/patch-ab b/x11/filerunner/patches/patch-ab new file mode 100644 index 00000000000..9163dc056f1 --- /dev/null +++ b/x11/filerunner/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.4 2004/08/15 03:25:24 minskim Exp $ + +--- ext.c.orig 1999-12-30 11:21:49.000000000 -0600 ++++ ext.c +@@ -654,7 +654,11 @@ GetDF(ClientData clientData, Tcl_Interp* + int argc, char* argv[]) + { + int i; ++#if defined(__NetBSD__) && (__NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */ ++ struct statvfs stat; ++#else + struct statfs stat; ++#endif + double b, x; + char tmp[5]; + HANDLE2(argc != 2, "Wrong # of args"); -- cgit v1.2.3