diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-06-10 22:04:12 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-06-10 22:04:12 +0000 |
commit | e5f25378098b6bb3c94d334a0b92696a2dcc32ff (patch) | |
tree | 37a3f77b7cb39c0c0956cab494d4c05787ec46c2 /graphics/blender | |
parent | 2f7ce5e2eef63ce18bd69ab7e4014f79800e7974 (diff) | |
download | pkgsrc-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')
-rw-r--r-- | graphics/blender/distinfo | 3 | ||||
-rw-r--r-- | graphics/blender/patches/patch-ab | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/graphics/blender/distinfo b/graphics/blender/distinfo index 4bb72190cb4..fc1bc68dee3 100644 --- a/graphics/blender/distinfo +++ b/graphics/blender/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.10 2004/02/17 20:35:53 jschauma Exp $ +$NetBSD: distinfo,v 1.11 2004/06/10 22:04:12 jmmv Exp $ SHA1 (blender-2.32.tar.bz2) = 79a508e234d5e40287e9ebef352e3b0ee2ad443e Size (blender-2.32.tar.bz2) = 5661028 bytes SHA1 (patch-aa) = 733f4ec4e5236e4196288ead26c2680a78e2d77b +SHA1 (patch-ab) = 46b1d28ee4702501cdc6a7b48cbd0eb2642550c8 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 |