summaryrefslogtreecommitdiff
path: root/src/mman
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman')
-rw-r--r--src/mman/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mman/mmap.c b/src/mman/mmap.c
index b85f25ca..19caadbd 100644
--- a/src/mman/mmap.c
+++ b/src/mman/mmap.c
@@ -10,7 +10,7 @@ static void dummy(void) { }
weak_alias(dummy, __vm_wait);
#define UNIT SYSCALL_MMAP2_UNIT
-#define OFF_MASK ((-0x2000ULL << (8*sizeof(long)-1)) | (UNIT-1))
+#define OFF_MASK ((-0x2000ULL << (8*sizeof(syscall_arg_t)-1)) | (UNIT-1))
void *__mmap(void *start, size_t len, int prot, int flags, int fd, off_t off)
{