summaryrefslogtreecommitdiff
path: root/graphics/blender/patches
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-06-10 22:04:12 +0000
committerjmmv <jmmv@pkgsrc.org>2004-06-10 22:04:12 +0000
commite5f25378098b6bb3c94d334a0b92696a2dcc32ff (patch)
tree37a3f77b7cb39c0c0956cab494d4c05787ec46c2 /graphics/blender/patches
parent2f7ce5e2eef63ce18bd69ab7e4014f79800e7974 (diff)
downloadpkgsrc-e5f25378098b6bb3c94d334a0b92696a2dcc32ff.tar.gz
Fix build under NetBSD current (use statvfs instead of statfs). I'm not
adding a check in configure as I'd like to because it does not have any AC_CHECK_FUNCS call that I could easily use to do this (the diff could be quite big).
Diffstat (limited to 'graphics/blender/patches')
-rw-r--r--graphics/blender/patches/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/blender/patches/patch-ab b/graphics/blender/patches/patch-ab
new file mode 100644
index 00000000000..816cfa91712
--- /dev/null
+++ b/graphics/blender/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.3 2004/06/10 22:04:13 jmmv Exp $
+
+--- source/blender/blenlib/intern/storage.c.orig 2003-05-29 16:09:25.000000000 +0200
++++ source/blender/blenlib/intern/storage.c
+@@ -182,7 +182,11 @@ double BLI_diskfree(char *dir)
+
+ return (double) (freec*bytesps*sectorspc);
+ #else
++#if defined (__NetBSD__) && __NetBSD_Version__ >= 200040000 /* 2.0D */
++ struct statvfs disk;
++#else
+ struct statfs disk;
++#endif
+ char name[100],*slash;
+
+
+@@ -193,7 +197,10 @@ double BLI_diskfree(char *dir)
+ if (slash) slash[1] = 0;
+ } else strcpy(name,"/");
+
+-#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__)
++#if defined (__NetBSD__) && __NetBSD_Version__ >= 200040000 /* 2.0D */
++ if (statvfs(name, &disk)) return(-1);
++#elif defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) || \
++ defined (__NetBSD__)
+ if (statfs(name, &disk)) return(-1);
+ #endif
+ #ifdef __BeOS