From c73cd5e69000dc5c64a864e67069864c74fce2a3 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Fri, 8 Dec 2023 22:24:17 -0400 Subject: [PATCH] apply patch --- src/absl/base/internal/direct_mmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/absl/base/internal/direct_mmap.h b/src/absl/base/internal/direct_mmap.h index e492bb00..ce3d5b42 100644 --- a/src/absl/base/internal/direct_mmap.h +++ b/src/absl/base/internal/direct_mmap.h @@ -72,7 +72,7 @@ namespace base_internal { // Platform specific logic extracted from // https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, - off64_t offset) noexcept { + off_t offset) noexcept { #if defined(__i386__) || defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \ defined(__m68k__) || defined(__sh__) || \ (defined(__hppa__) && !defined(__LP64__)) || \ @@ -101,7 +101,7 @@ inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, #else return reinterpret_cast( syscall(SYS_mmap2, start, length, prot, flags, fd, - static_cast(offset / pagesize))); + static_cast(offset / pagesize))); #endif #elif defined(__s390x__) // On s390x, mmap() arguments are passed in memory.