Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2004-08-03 21:05:03 +0400
committerWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2004-08-03 21:05:03 +0400
commitd1bbaf18ca2d23f1f7c3a6c0e990d14cce898e07 (patch)
treec059931c0e99e1771b66c4215bb3f61059e2e4d2 /source/blender/blenlib/intern/storage.c
parent6e7800e349589ab02be50d7963727b411bfb0e89 (diff)
- Fix build failure on Linux sparc
Checks for operating systems should be that, and not checks for hardware. Linux/sparc is a valid combination, using sparc to check for Solaris thus results in problems on non-Solaris.
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r--source/blender/blenlib/intern/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 76af36335e5..4982ffa5899 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -56,7 +56,7 @@
#include <time.h>
#include <sys/stat.h>
-#if defined(__sgi) || defined(__sun__) || defined(__sun) || defined(__sparc) || defined(__sparc__)
+#if !defined(linux) && (defined(__sgi) || defined(__sun__) || defined(__sun) || defined(__sparc) || defined(__sparc__))
#include <sys/statfs.h>
#endif
@@ -194,7 +194,7 @@ double BLI_diskfree(char *dir)
#ifdef __BeOS
return -1;
#endif
-#if defined (__sgi) || defined (__sun__) || defined (__sun) || defined(__sparc) || defined(__sparc__)
+#if !defined(linux) && (defined (__sgi) || defined (__sun__) || defined (__sun) || defined(__sparc) || defined(__sparc__))
if (statfs(name, &disk, sizeof(struct statfs), 0)){
/* printf("diskfree: Couldn't get information about %s.\n",dir); */