Fix build with musl

This commit is contained in:
dec05eba
2026-03-22 20:08:14 +01:00
parent c3e9aa0f81
commit 5ef06a2466
5 changed files with 8 additions and 5 deletions

View File

@@ -300,8 +300,8 @@ namespace gsr {
return;
}
struct stat64 stat;
if(fstat64(file_fd, &stat) == -1) {
struct stat stat;
if(fstat(file_fd, &stat) == -1) {
fprintf(stderr, "gsr ui: error: ClipboardFile::set_current_file: failed to get file size for file %s, error: %s\n", filepath.c_str(), strerror(errno));
close(file_fd);
file_fd = -1;
@@ -313,4 +313,4 @@ namespace gsr {
XSetSelectionOwner(dpy, clipboard_atom, clipboard_window, CurrentTime);
XFlush(dpy);
}
}
}