Skip to content

Commit 1c00242

Browse files
authored
Merge pull request #252 from r-spatial/alpine-fix
Apply Abseil patch to fix compile on Alpine Linux
2 parents 1f5e492 + c73cd5e commit 1c00242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/absl/base/internal/direct_mmap.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace base_internal {
7272
// Platform specific logic extracted from
7373
// https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h
7474
inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd,
75-
off64_t offset) noexcept {
75+
off_t offset) noexcept {
7676
#if defined(__i386__) || defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \
7777
defined(__m68k__) || defined(__sh__) || \
7878
(defined(__hppa__) && !defined(__LP64__)) || \
@@ -101,7 +101,7 @@ inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd,
101101
#else
102102
return reinterpret_cast<void*>(
103103
syscall(SYS_mmap2, start, length, prot, flags, fd,
104-
static_cast<off_t>(offset / pagesize)));
104+
static_cast<unsigned long>(offset / pagesize)));
105105
#endif
106106
#elif defined(__s390x__)
107107
// On s390x, mmap() arguments are passed in memory.

0 commit comments

Comments
 (0)