diff options
Diffstat (limited to 'lib/libc/sys/mmap.c')
-rw-r--r-- | lib/libc/sys/mmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index c011692..32aeffb 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -38,6 +38,7 @@ static char sccsid[] = "@(#)mmap.c 8.1 (Berkeley) 6/17/93"; #include <sys/types.h> #include <sys/mman.h> #include <sys/syscall.h> +#include <unistd.h> /* * This function provides 64-bit offset padding that @@ -53,6 +54,6 @@ mmap(addr, len, prot, flags, fd, offset) off_t offset; { - return((void *)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, + return((void *)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset)); } |