aports/main/libeatmydata/lfs64.patch
psykose f87f2c5938 main/libeatmydata: move from community
small useful utility LD_PRELOAD for CI-related things
2023-05-29 03:04:28 +02:00

22 lines
888 B
Diff

diff --git a/libeatmydata/libeatmydata.c b/libeatmydata/libeatmydata.c
index 134afcd..b302e7b 100644
--- a/libeatmydata/libeatmydata.c
+++ b/libeatmydata/libeatmydata.c
@@ -44,7 +44,7 @@ typedef int (*libc_sync_t)(void);
typedef int (*libc_fdatasync_t)(int);
typedef int (*libc_msync_t)(void*, size_t, int);
#ifdef HAVE_SYNC_FILE_RANGE
-typedef int (*libc_sync_file_range_t)(int, off64_t, off64_t, unsigned int);
+typedef int (*libc_sync_file_range_t)(int, off_t, off_t, unsigned int);
#endif
#ifdef HAVE_SYNCFS
typedef int (*libc_syncfs_t)(int);
@@ -259,7 +259,7 @@ int LIBEATMYDATA_API msync(void *addr, size_t length, int flags)
}
#ifdef HAVE_SYNC_FILE_RANGE
-int LIBEATMYDATA_API sync_file_range(int fd, off64_t offset, off64_t nbytes,
+int LIBEATMYDATA_API sync_file_range(int fd, off_t offset, off_t nbytes,
unsigned int flags)
{
if (eatmydata_is_hungry()) {