summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorminskim <minskim>2004-09-16 20:14:05 +0000
committerminskim <minskim>2004-09-16 20:14:05 +0000
commit01cccda6863e7a13c50f77a31c93748be39d5375 (patch)
treeca16951ee73dccef7ad5d2ccfc9e1609c808c238 /net
parent1485475ca3268eb64412152a9b201cdfbf352be7 (diff)
downloadpkgsrc-01cccda6863e7a13c50f77a31c93748be39d5375.tar.gz
Use statvfs on NetBSD>=2.0D.
Diffstat (limited to 'net')
-rw-r--r--net/spegla/distinfo3
-rw-r--r--net/spegla/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/net/spegla/distinfo b/net/spegla/distinfo
index 93a5665fdc6..f3a7d51fc71 100644
--- a/net/spegla/distinfo
+++ b/net/spegla/distinfo
@@ -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 --git a/net/spegla/patches/patch-ab b/net/spegla/patches/patch-ab
new file mode 100644
index 00000000000..02757630a8d
--- /dev/null
+++ b/net/spegla/patches/patch-ab
@@ -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