diff --git a/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc b/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc index 9b4a76df64e4..26f881fd3580 100644 --- a/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc +++ b/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc @@ -103,7 +103,7 @@ namespace __sanitizer { uptr internal_mmap(void *addr, uptr length, int prot, int flags, int fd, u64 offset) { #if SANITIZER_NETBSD - return internal_syscall_ptr(SYSCALL(mmap), addr, length, prot, flags, fd, + return internal_syscall64(SYSCALL(mmap), addr, length, prot, flags, fd, (long)0, offset); #elif SANITIZER_FREEBSD || SANITIZER_LINUX_USES_64BIT_SYSCALLS return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd,