--- src/fsearch_database_file.c.orig 2026-07-11 22:10:03 +++ src/fsearch_database_file.c 2026-07-14 10:00:52 @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -1073,7 +1073,7 @@ // now that we know the size of the file/folder block we've written, store it in the file header // Make also sure to set the cursor checksum again, so folder and file block size are hashed as well cursor.checksum = checksum; - if (fseeko(fp, (off64_t)folder_block_size_offset, SEEK_SET) != 0) { + if (fseeko(fp, (off_t)folder_block_size_offset, SEEK_SET) != 0) { goto save_fail; } g_debug("[db_save] updating file and folder block size: %" PRIu64 ", %" PRIu64, folder_block_size, file_block_size); @@ -1081,7 +1081,7 @@ cursor_write(&cursor, &file_block_size, sizeof(file_block_size)); // after writing the folder and file block size, we can - if (fseeko(fp, (off64_t)checksum_offset, SEEK_SET) != 0) { + if (fseeko(fp, (off_t)checksum_offset, SEEK_SET) != 0) { goto save_fail; } gsize checksum_buffer_len = DATABASE_CHECKSUM_SIZE;