blob: abe689855409bbc41502435768eb5fc8fdc97255 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 0508c1518c2e7c586a231d344e9f93b08507885b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 31 Dec 2022 14:23:40 -0800
4Subject: [PATCH] wiredtiger: Avoid using off64_t
5
6off64_t is not available on musl since off_t is already 64bit by
7default. Therefore replace using off64_t with off_t
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/third_party/wiredtiger/src/os_posix/os_fs.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/third_party/wiredtiger/src/os_posix/os_fs.c b/src/third_party/wiredtiger/src/os_posix/os_fs.c
16index 3898eb74343..9ce2d5edb38 100644
17--- a/src/third_party/wiredtiger/src/os_posix/os_fs.c
18+++ b/src/third_party/wiredtiger/src/os_posix/os_fs.c
19@@ -533,7 +533,7 @@ __posix_file_sync_nowait(WT_FILE_HANDLE *file_handle, WT_SESSION *wt_session)
20 pfh = (WT_FILE_HANDLE_POSIX *)file_handle;
21
22 /* See comment in __posix_sync(): sync cannot be retried or fail. */
23- WT_SYSCALL(sync_file_range(pfh->fd, (off64_t)0, (off64_t)0, SYNC_FILE_RANGE_WRITE), ret);
24+ WT_SYSCALL(sync_file_range(pfh->fd, 0, 0, SYNC_FILE_RANGE_WRITE), ret);
25 if (ret == 0)
26 return (0);
27
28--
292.39.0
30