$NetBSD: patch-ab,v 1.10 2013/01/02 02:22:08 ryoon Exp $

--- source/blender/blenlib/intern/storage.c.orig	2012-12-10 19:25:44.000000000 +0000
+++ source/blender/blenlib/intern/storage.c
@@ -43,7 +43,7 @@
 #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>
@@ -163,7 +163,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;
@@ -186,7 +186,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 */
