1068 |
|
|
1069 |
#ifdef HAVE_STATS |
#ifdef HAVE_STATS |
1070 |
static value |
static value |
1071 |
#if ((defined (sun) || defined (__sun__))) |
#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__ > 299000000)) |
1072 |
copy_statfs (struct statvfs *buf) |
copy_statfs (struct statvfs *buf) |
1073 |
#else |
#else |
1074 |
copy_statfs (struct statfs *buf) |
copy_statfs (struct statfs *buf) |
1125 |
CAMLparam1 (pathv); |
CAMLparam1 (pathv); |
1126 |
CAMLlocal1 (bufv); |
CAMLlocal1 (bufv); |
1127 |
const char *path = String_val (pathv); |
const char *path = String_val (pathv); |
1128 |
#if ((defined (sun) || defined (__sun__))) |
#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__ > 299000000)) |
1129 |
struct statvfs buf; |
struct statvfs buf; |
1130 |
if (statvfs (path, &buf) == -1) |
if (statvfs (path, &buf) == -1) |
1131 |
#else |
#else |