diff options
Diffstat (limited to 'net/mirall/patches/patch-src_mirall_utility.cpp')
-rw-r--r-- | net/mirall/patches/patch-src_mirall_utility.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/net/mirall/patches/patch-src_mirall_utility.cpp b/net/mirall/patches/patch-src_mirall_utility.cpp index 1b56358b64f..2d898b0f963 100644 --- a/net/mirall/patches/patch-src_mirall_utility.cpp +++ b/net/mirall/patches/patch-src_mirall_utility.cpp @@ -1,15 +1,24 @@ -$NetBSD: patch-src_mirall_utility.cpp,v 1.1 2013/11/22 12:11:49 ryoon Exp $ +$NetBSD: patch-src_mirall_utility.cpp,v 1.2 2014/12/21 13:46:24 ryoon Exp $ * https://github.com/owncloud/mirall/issues/1060 ---- src/mirall/utility.cpp.orig 2013-10-21 12:05:25.000000000 +0000 +--- src/mirall/utility.cpp.orig 2014-12-18 11:45:49.000000000 +0000 +++ src/mirall/utility.cpp -@@ -315,7 +315,7 @@ void Utility::setLaunchOnStartup(const Q +@@ -172,7 +172,7 @@ void Utility::setLaunchOnStartup(const Q qint64 Utility::freeDiskSpace(const QString &path, bool *ok) { --#ifdef Q_OS_MAC -+#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) +-#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_FREEBSD_KERNEL) ++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_FREEBSD_KERNEL) || defined(Q_OS_NETBSD) struct statvfs stat; statvfs(path.toUtf8().data(), &stat); return (qint64) stat.f_bavail * stat.f_frsize; +@@ -365,7 +365,7 @@ bool Utility::isUnix() + + bool Utility::isLinux() + { +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) + return true; + #else + return false; |