From: Christian Grothoff Date: Fri, 2 Jul 2010 08:33:58 +0000 (+0000) Subject: trying to port statvfs call to BSD X-Git-Tag: initial-import-from-subversion-38251~21090 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ec60975202a88120ae7a414e6ddafff21d65258;p=oweals%2Fgnunet.git trying to port statvfs call to BSD --- diff --git a/src/util/disk.c b/src/util/disk.c index ef1f9ad4b..88f11be51 100644 --- a/src/util/disk.c +++ b/src/util/disk.c @@ -267,7 +267,7 @@ GNUNET_DISK_file_get_identifiers (const char *filename, if ( (0 == stat (filename, &sbuf)) && (0 == statfs (filename, &fbuf) ) ) { - *dev = (uint64_t) fbuf.f_fsid; + *dev = ((uint64_t) fbuf.f_fsid.val[0]) << 32 || ((uint64_t) fbuf.f_fsid.val[1]); *ino = (uint64_t) sbuf.st_ino; return GNUNET_OK; }