summaryrefslogtreecommitdiff
path: root/graphics/blender/patches/patch-ab
blob: 1af495ffea23a07e6bb0a08b4020d8011d9ad62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-ab,v 1.11 2013/10/12 22:11:00 ryoon Exp $

--- source/blender/blenlib/intern/storage.c.orig	2013-04-25 16:35:57.000000000 +0000
+++ source/blender/blenlib/intern/storage.c
@@ -42,13 +42,13 @@
 #include <time.h>
 #include <sys/stat.h>
 
-#if defined(__sun__) || defined(__sun) || defined(__NetBSD__)
+#if defined(__sun__) || defined(__sun) || defined(__NetBSD__) || defined(__DragonFly__)
 #  include <sys/statvfs.h> /* Other modern unix os's should probably use this also */
 #elif !defined(__FreeBSD__) && !defined(linux) && (defined(__sparc) || defined(__sparc__))
 #  include <sys/statfs.h>
 #endif
 
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 #  include <sys/param.h>
 #  include <sys/mount.h>
 #endif
@@ -173,7 +173,7 @@ double BLI_dir_free_space(const char *di
 	return (double) (freec * bytesps * sectorspc);
 #else
 
-#if defined(__sun__) || defined(__sun) || defined(__NetBSD__)
+#if defined(__sun__) || defined(__sun) || defined(__NetBSD__) || defined(__DragonFly__)
 	struct statvfs disk;
 #else
 	struct statfs disk;
@@ -198,7 +198,7 @@ double BLI_dir_free_space(const char *di
 	if (statfs(name, &disk)) return(-1);
 #endif
 
-#if defined(__sun__) || defined(__sun) || defined(__NetBSD__)
+#if defined(__sun__) || defined(__sun) || defined(__NetBSD__) || defined(__DragonFly__)
 	if (statvfs(name, &disk)) return(-1);
 #elif !defined(__FreeBSD__) && !defined(linux) && (defined(__sparc) || defined(__sparc__))
 	/* WARNING - This may not be supported by geeneric unix os's - Campbell */