Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/storage.c
| Show All 31 Lines | |||||
| */ | */ | ||||
| #include <sys/types.h> | #include <sys/types.h> | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||
| #if defined(__NetBSD__) || defined(__DragonFly__) || defined(__sun__) || defined(__sun) | #if defined(__NetBSD__) || defined(__DragonFly__) | ||||
| /* Other modern unix os's should probably use this also */ | /* Other modern unix os's should probably use this also */ | ||||
| # include <sys/statvfs.h> | # include <sys/statvfs.h> | ||||
| # define USE_STATFS_STATVFS | # define USE_STATFS_STATVFS | ||||
| #elif (defined(__sparc) || defined(__sparc__)) && !defined(__FreeBSD__) && !defined(__linux__) | |||||
| # include <sys/statfs.h> | |||||
| /* 4 argument version (not common) */ | |||||
| # define USE_STATFS_4ARGS | |||||
| #endif | #endif | ||||
| #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) | #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) | ||||
| /* For statfs */ | /* For statfs */ | ||||
| # include <sys/param.h> | # include <sys/param.h> | ||||
| # include <sys/mount.h> | # include <sys/mount.h> | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines | |||||