mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
core/log: fix non-linux typo and import unistd on freebsd
This commit is contained in:
parent
0a859d51f2
commit
97b2688ad6
1 changed files with 4 additions and 1 deletions
|
|
@ -31,6 +31,9 @@
|
|||
#include <sys/sendfile.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "instanceinfo.hpp"
|
||||
#include "logcat.hpp"
|
||||
|
|
@ -67,7 +70,7 @@ bool copyFileData(int sourceFd, int destFd, qint64 size) {
|
|||
return true;
|
||||
#else
|
||||
std::array<char, 64 * 1024> buffer = {};
|
||||
auto remaining = totalTarget;
|
||||
auto remaining = usize;
|
||||
|
||||
while (remaining > 0) {
|
||||
auto chunk = std::min(remaining, buffer.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue