mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-12 09:02:30 +01:00
14 lines
472 B
Diff
14 lines
472 B
Diff
--- a/src/common/utility.cpp
|
|
+++ b/src/common/utility.cpp
|
|
@@ -192,8 +192,8 @@ qint64 Utility::freeDiskSpace(const QStr
|
|
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)
|