diff options
author | seth <getchoo@tuta.io> | 2023-06-20 19:55:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 19:55:03 -0400 |
commit | 4eaa7dc8b1839b1ae88c5a0f5080a47358bb52c0 (patch) | |
tree | 917c33654c614da99d30f696f1734279839572ae | |
parent | 3c648ff9fdbed9ed84774b45a3a7a99ccad3792d (diff) | |
parent | a32a3e25adbb20e31749828cca84a3ff3878f094 (diff) | |
download | PrismLauncher-4eaa7dc8b1839b1ae88c5a0f5080a47358bb52c0.tar.gz PrismLauncher-4eaa7dc8b1839b1ae88c5a0f5080a47358bb52c0.tar.bz2 PrismLauncher-4eaa7dc8b1839b1ae88c5a0f5080a47358bb52c0.zip |
Merge pull request #1234 from Szowisz/develop
Fix compiling on FreeBSD
-rw-r--r-- | launcher/FileSystem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp index d98526df..835ad925 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_FREEBSD) || defined(Q_OS_OPENBSD) +#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD) #include <sys/attr.h> #include <sys/clonefile.h> #elif defined(Q_OS_WIN) @@ -1151,7 +1151,7 @@ bool clone_file(const QString& src, const QString& dst, std::error_code& ec) return false; } -#elif defined(Q_OS_MACOS) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) +#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD) if (!macos_bsd_clonefile(src_path, dst_path, ec)) { qDebug() << "failed macos_bsd_clonefile:"; @@ -1380,7 +1380,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_FREEBSD) || defined(Q_OS_OPENBSD) +#elif defined(Q_OS_MACOS) || defined(Q_OS_OPENBSD) bool macos_bsd_clonefile(const std::string& src_path, const std::string& dst_path, std::error_code& ec) { |