Skip to content

Commit 15786c0

Browse files
authored
fix(windows): Fix offset type issue in client lib (#761)
Commit 84c158a introduced usage of __off_t, which is a non-standard glibc internal type. This caused the Windows client library to fail to compile. Replace __off_t with a portable, cross-platform offset type to restore Windows build compatibility. Signed-off-by: rolysr <rolysr@leil.io>
1 parent 50e48c2 commit 15786c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mount/sauna_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ EntryParam lookup(Context &ctx, inode_t parent, const char *name) {
10191019
attr_to_stat(inode, attr, &e.attr);
10201020
if (maxFileLen > static_cast<uint64_t>(e.attr.st_size)) {
10211021
update_attr_size(attr, maxFileLen);
1022-
e.attr.st_size = static_cast<__off_t>(maxFileLen);
1022+
e.attr.st_size = static_cast<off_t>(maxFileLen);
10231023
}
10241024

10251025
// If lookup succeeded and data did not come from cache, then cache it.

0 commit comments

Comments
 (0)