Skip to content

Commit

Permalink
Fix compilation against musl
Browse files Browse the repository at this point in the history
As usual in C stdlib world. Ill thought out break the world changes.
Sigh. musl no longer defines off64_t.

Fixes #6441
  • Loading branch information
kovidgoyal committed Jul 11, 2023
1 parent a1e5b72 commit 90223b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitty/fast-file-copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ copy_with_file_range(int infd, int outfd, off_t in_pos, size_t len, FastFileCopy
#ifdef HAS_COPY_FILE_RANGE
unsigned num_of_consecutive_zero_returns = 128;
while (len) {
off64_t r = in_pos;
int64_t r = in_pos;
ssize_t n = copy_file_range(infd, &r, outfd, NULL, len, 0);
if (n < 0) {
if (errno == EAGAIN) continue;
Expand Down

0 comments on commit 90223b5

Please sign in to comment.