From 33af699191f2d0eca4a8520c8ebec47aa28cfd12 Mon Sep 17 00:00:00 2001 From: "Elias M. Mariani" Date: Mon, 27 Aug 2018 17:14:14 -0300 Subject: [PATCH] Support the OpenBSD filesystem --- src/base/filesystemwatcher.cpp | 2 +- src/base/utils/fs.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/filesystemwatcher.cpp b/src/base/filesystemwatcher.cpp index 58a3c14af..9ce72bbb1 100644 --- a/src/base/filesystemwatcher.cpp +++ b/src/base/filesystemwatcher.cpp @@ -30,7 +30,7 @@ #include -#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) +#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) #include #include #include diff --git a/src/base/utils/fs.cpp b/src/base/utils/fs.cpp index 2371a00ef..a889ac4a5 100644 --- a/src/base/utils/fs.cpp +++ b/src/base/utils/fs.cpp @@ -44,7 +44,7 @@ #if defined(Q_OS_WIN) #include -#elif defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) +#elif defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) #include #include #elif defined(Q_OS_HAIKU) @@ -313,7 +313,7 @@ bool Utils::Fs::isNetworkFileSystem(const QString &path) if (statfs(file.toLocal8Bit().constData(), &buf) != 0) return false; -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) || defined(Q_OS_OPENBSD) // XXX: should we make sure HAVE_STRUCT_FSSTAT_F_FSTYPENAME is defined? return ((strncmp(buf.f_fstypename, "nfs", sizeof(buf.f_fstypename)) == 0) || (strncmp(buf.f_fstypename, "cifs", sizeof(buf.f_fstypename)) == 0)