aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorFinian Wright <turbowafflz@gmail.com>2023-07-02 00:35:37 -0400
committerFinian Wright <turbowafflz@gmail.com>2023-07-02 00:36:21 -0400
commit3fe518ff2b9ef902ff44b2c8249bafdf61f8e5eb (patch)
treefaf0c22c7f29cb8775aecbe81461530161b2f0e1 /launcher/FileSystem.cpp
parentc523765c197cf63d6830d205f1554cd73e38109e (diff)
downloadPrismLauncher-3fe518ff2b9ef902ff44b2c8249bafdf61f8e5eb.tar.gz
PrismLauncher-3fe518ff2b9ef902ff44b2c8249bafdf61f8e5eb.tar.bz2
PrismLauncher-3fe518ff2b9ef902ff44b2c8249bafdf61f8e5eb.zip
Fix compiling on OpenBSD
Signed-off-by: Finian Wright <turbowafflz@gmail.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 1ea9f755..3ce8dd2c 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -102,7 +102,7 @@ namespace fs = ghc::filesystem;
#include <linux/fs.h>
#include <sys/ioctl.h>
#include <unistd.h>
-#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD)
+#elif defined(Q_OS_MACOS)
#include <sys/attr.h>
#include <sys/clonefile.h>
#elif defined(Q_OS_WIN)
@@ -1156,7 +1156,7 @@ bool clone_file(const QString& src, const QString& dst, std::error_code& ec)
return false;
}
-#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD)
+#elif defined(Q_OS_MACOS)
if (!macos_bsd_clonefile(src_path, dst_path, ec)) {
qDebug() << "failed macos_bsd_clonefile:";
@@ -1385,7 +1385,7 @@ bool linux_ficlone(const std::string& src_path, const std::string& dst_path, std
return true;
}
-#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD)
+#elif defined(Q_OS_MACOS)
bool macos_bsd_clonefile(const std::string& src_path, const std::string& dst_path, std::error_code& ec)
{