$OpenBSD: patch-source_blender_blenlib_intern_storage_c,v 1.3 2009/10/25 22:41:25 steven Exp $
--- source/blender/blenlib/intern/storage.c.orig	Tue Sep  1 17:21:52 2009
+++ source/blender/blenlib/intern/storage.c	Sat Oct 10 19:38:12 2009
@@ -47,7 +47,7 @@
 #include <time.h>
 #include <sys/stat.h>
 
-#if defined (__sun__) || defined (__sun) || defined (__sgi)
+#if defined (__OpenBSD__) || defined (__sun__) || defined (__sun) || defined (__sgi)
 #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>
@@ -179,7 +179,7 @@ double BLI_diskfree(char *dir)
 	return (double) (freec*bytesps*sectorspc);
 #else
 
-#if defined (__sun__) || defined (__sun) || defined (__sgi)
+#if defined (__OpenBSD__) || defined (__sun__) || defined (__sun) || defined (__sgi)
 	struct statvfs disk;
 #else
 	struct statfs disk;
@@ -197,14 +197,14 @@ double BLI_diskfree(char *dir)
 		if (slash) slash[1] = 0;
 	} else strcpy(name,"/");
 
-#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__) || defined (__APPLE__) 
+#if defined (__FreeBSD__) || defined (linux) || defined (__APPLE__) 
 	if (statfs(name, &disk)) return(-1);
 #endif
 #ifdef __BeOS
 	return -1;
 #endif
 
-#if defined (__sun__) || defined (__sun) || defined (__sgi)
+#if defined (__OpenBSD__) || defined (__sun__) || defined (__sun) || defined (__sgi)
 	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 */
