- 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.
This commit is contained in:
Wouter van Heyst
2004-08-03 17:05:03 +00:00
parent 6e7800e349
commit d1bbaf18ca

View File

@@ -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); */