Modified checks for defined __FreeBSD__ to also include defined (__OpenBSD__)

From: http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=840

Kent
This commit is contained in:
2003-01-30 18:51:05 +00:00
parent 96cb7d1629
commit 9475bf9e29
4 changed files with 4 additions and 10 deletions

View File

@@ -60,7 +60,7 @@
#include <sys/statfs.h>
#endif
#ifdef __FreeBSD__
#ifdef defined (__FreeBSD__) || defined (__OpenBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#endif
@@ -194,7 +194,7 @@ double BLI_diskfree(char *dir)
if (slash) slash[1] = 0;
} else strcpy(name,"/");
#if defined __FreeBSD__ || defined linux
#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__)
if (statfs(name, &disk)) return(-1);
#endif
#ifdef __BeOS