pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/spegla Use statvfs on NetBSD>=2.0D.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4464ee972527
branches:  trunk
changeset: 480621:4464ee972527
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Sep 16 20:14:05 2004 +0000

description:
Use statvfs on NetBSD>=2.0D.

diffstat:

 net/spegla/distinfo         |   3 ++-
 net/spegla/patches/patch-ab |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 362b65914733 -r 4464ee972527 net/spegla/distinfo
--- a/net/spegla/distinfo       Thu Sep 16 19:36:53 2004 +0000
+++ b/net/spegla/distinfo       Thu Sep 16 20:14:05 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 11:23:34 wiz Exp $
+$NetBSD: distinfo,v 1.3 2004/09/16 20:14:05 minskim Exp $
 
 SHA1 (spegla-1.1.tar.gz) = 97829070f201a7be6b3a71bd62b761c8d5c903b0
 Size (spegla-1.1.tar.gz) = 91450 bytes
 SHA1 (patch-aa) = 3a928ae8ee490b56dd572a1bf9428e50e163a797
+SHA1 (patch-ab) = 4423d6943f625c806a4321684f0a332269f58908
diff -r 362b65914733 -r 4464ee972527 net/spegla/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/spegla/patches/patch-ab       Thu Sep 16 20:14:05 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.4 2004/09/16 20:14:05 minskim Exp $
+
+--- spegla.c.orig      1999-11-24 13:38:06.000000000 -0600
++++ spegla.c
+@@ -657,7 +657,7 @@ check_minfree(int minfree, char *path)
+ #ifdef ULTRIX
+       struct  fs_data f;
+ #else
+-#ifdef Solaris
++#if defined(Solaris) || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
+       struct  statvfs f;
+ #else
+       struct  statfs f;
+@@ -667,7 +667,7 @@ check_minfree(int minfree, char *path)
+       if (minfree == 0)
+               return;
+ 
+-#ifdef Solaris
++#if defined(Solaris) || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000)
+       if (statvfs(path, &f) < 0)
+               e_err(1, "statvfs: %s", path);
+ #else



Home | Main Index | Thread Index | Old Index