From 97b2688ad67d4af95c7378f2ca0cece8bd3f9952 Mon Sep 17 00:00:00 2001 From: -k Date: Tue, 3 Mar 2026 11:20:56 -0500 Subject: [PATCH] core/log: fix non-linux typo and import unistd on freebsd --- src/core/logging.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/logging.cpp b/src/core/logging.cpp index d24225b..893c56e 100644 --- a/src/core/logging.cpp +++ b/src/core/logging.cpp @@ -31,6 +31,9 @@ #include #include #endif +#ifdef __FreeBSD__ +#include +#endif #include "instanceinfo.hpp" #include "logcat.hpp" @@ -67,7 +70,7 @@ bool copyFileData(int sourceFd, int destFd, qint64 size) { return true; #else std::array buffer = {}; - auto remaining = totalTarget; + auto remaining = usize; while (remaining > 0) { auto chunk = std::min(remaining, buffer.size());