mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-22 14:12:25 +02:00
16 lines
573 B
Diff
16 lines
573 B
Diff
diff --git a/src/common/utility.cpp b/src/common/utility.cpp
|
|
index 9baf137..2f1dc5b 100644
|
|
--- a/src/common/utility.cpp
|
|
+++ b/src/common/utility.cpp
|
|
@@ -228,8 +228,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)
|