mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 21:34:10 -05:00
Added in #ifdefs and corrected usage of vstat for OSX.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2979 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1fb7fb005c
commit
54219ea685
@ -83,8 +83,15 @@ bool RsDiscSpace::crossSystemDiskStats(const char *file, uint32_t& free_blocks,
|
||||
std::cerr << "Size estimate failed for file " << file << std::endl ;
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
free_blocks = buf.f_bavail;
|
||||
block_size = buf.f_frsize ;
|
||||
#else
|
||||
free_blocks = buf.f_bavail;
|
||||
block_size = buf.f_bsize ;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
return true ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user