14 lines
509 B
Text
14 lines
509 B
Text
Index: src/common/utility.cpp
|
|
--- src/common/utility.cpp.orig
|
|
+++ src/common/utility.cpp
|
|
@@ -163,8 +163,8 @@ qint64 Utility::freeDiskSpace(const QString &path)
|
|
return (qint64)stat.f_bavail * stat.f_frsize;
|
|
}
|
|
#elif defined(Q_OS_UNIX)
|
|
- struct statvfs64 stat;
|
|
- if (statvfs64(path.toLocal8Bit().data(), &stat) == 0) {
|
|
+ struct statvfs stat;
|
|
+ if (statvfs(path.toLocal8Bit().data(), &stat) == 0) {
|
|
return (qint64)stat.f_bavail * stat.f_frsize;
|
|
}
|
|
#elif defined(Q_OS_WIN)
|