[BACK]Return to patch-src_mirall_utility_cpp CVS log [TXT][DIR] Up to [local] / ports / net / mirall / patches

File: [local] / ports / net / mirall / patches / Attic / patch-src_mirall_utility_cpp (download)

Revision 1.1, Wed Apr 23 04:02:12 2014 UTC (10 years, 2 months ago) by kirby
Branch: MAIN

Initial revision

$OpenBSD$
--- src/mirall/utility.cpp.orig	Mon Apr 21 22:19:39 2014
+++ src/mirall/utility.cpp	Mon Apr 21 22:20:38 2014
@@ -321,8 +321,8 @@ qint64 Utility::freeDiskSpace(const QString &path, boo
     return (qint64) stat.f_bavail * stat.f_frsize;
 #elif defined(Q_OS_UNIX)
     Q_UNUSED(ok)
-    struct statvfs64 stat;
-    statvfs64(path.toUtf8().data(), &stat);
+    struct statvfs stat;
+    statvfs(path.toUtf8().data(), &stat);
     return (qint64) stat.f_bavail * stat.f_frsize;
 #elif defined(Q_OS_WIN)
     ULARGE_INTEGER freeBytes;