17 lines
587 B
Plaintext
17 lines
587 B
Plaintext
$OpenBSD: patch-src_common_utility_cpp,v 1.2 2018/11/12 05:57:05 kirby Exp $
|
|
|
|
Index: src/common/utility.cpp
|
|
--- src/common/utility.cpp.orig
|
|
+++ src/common/utility.cpp
|
|
@@ -218,8 +218,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)
|