Fix handle casting in debug messages.

Change statvfs64 to statvfs and leave the build system configure it, so
it doesn't break on OS X.
Enable pkg-config on OS X.
This commit is contained in:
codestation
2013-09-29 11:10:47 -04:30
parent 2d88347e4d
commit 03e3fb9ad5
5 changed files with 7 additions and 6 deletions

View File

@@ -40,9 +40,9 @@ bool getDiskSpace(const QString &dir, quint64 *free, quint64 *total)
}
#else
struct statvfs64 stat;
struct statvfs stat;
if(statvfs64(dir.toUtf8().data(), &stat) == 0) {
if(statvfs(dir.toUtf8().data(), &stat) == 0) {
*total = stat.f_frsize * stat.f_blocks;
*free = stat.f_frsize * stat.f_bfree;
return true;