summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2004-09-15 16:33:38 +0000
committeragc <agc@pkgsrc.org>2004-09-15 16:33:38 +0000
commit69390463e17640009a98f34cf0bdb1adbfcda39c (patch)
tree8d694afd7d3370be31c3a19d8f295acf150e26d9 /ham
parent6856b6033b25f065e9032c3d948ddce5ed8cbbfe (diff)
downloadpkgsrc-69390463e17640009a98f34cf0bdb1adbfcda39c.tar.gz
Make this compile on NetBSD-2.0D and later with statvfs(2).
Diffstat (limited to 'ham')
-rw-r--r--ham/dpbox/distinfo3
-rw-r--r--ham/dpbox/patches/patch-af32
2 files changed, 34 insertions, 1 deletions
diff --git a/ham/dpbox/distinfo b/ham/dpbox/distinfo
index fc3c23d135b..8267ad98a75 100644
--- a/ham/dpbox/distinfo
+++ b/ham/dpbox/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2003/06/07 15:20:31 jmmv Exp $
+$NetBSD: distinfo,v 1.5 2004/09/15 16:33:38 agc Exp $
SHA1 (dpbox-60000.tar.gz) = 73a55785f499324f57736c7fb3cc0bd1001facd3
Size (dpbox-60000.tar.gz) = 957010 bytes
@@ -7,3 +7,4 @@ SHA1 (patch-ab) = abeee7b86844c8937792ef09a938caf232574fb3
SHA1 (patch-ac) = faa4e5b32a31283e0ed7ed9730c026ccd5efffb4
SHA1 (patch-ad) = 589a69328b5959f81b86739a6e3c32f6d1d71ffe
SHA1 (patch-ae) = 9c8ac68bb2102f19d2dea85dbe18197c7ad2b864
+SHA1 (patch-af) = 7523a891e628e871917a677b27553508de468366
diff --git a/ham/dpbox/patches/patch-af b/ham/dpbox/patches/patch-af
new file mode 100644
index 00000000000..0e694627d8b
--- /dev/null
+++ b/ham/dpbox/patches/patch-af
@@ -0,0 +1,32 @@
+$NetBSD: patch-af,v 1.1 2004/09/15 16:33:38 agc Exp $
+
+--- filesys.c 2004/09/15 16:24:57 1.1
++++ filesys.c 2004/09/15 16:24:21
+@@ -401,6 +401,11 @@
+
+ #if defined(__linux__) || defined(__NetBSD__)
+
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 200040000)
++#include <sys/statvfs.h>
++#endif
++
++
+ /* simply copied that widespread file access code of former dpbox code */
+ /* in this single file. Not a real change to previous versions of the */
+ /* code. lot of the code was written by Mark Wahl DL4YBG for the first */
+@@ -413,9 +418,15 @@
+
+ long DFree(char *mount)
+ {
++#if defined(__NetBSD__) && (__NetBSD_Version__ < 200040000)
+ struct statfs mystatfs;
+
+ statfs(mount, &mystatfs);
++#else
++ struct statvfs mystatfs;
++
++ statvfs(mount, &mystatfs);
++#endif
+ if (mystatfs.f_bsize % 1024 == 0)
+ return (mystatfs.f_bsize / 1024) * mystatfs.f_bavail;
+ else