diff options
author | John Birrell <jb@FreeBSD.org> | 1998-03-09 07:27:58 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1998-03-09 07:27:58 +0000 |
commit | 45dd71842552bd8881d5b39462d00d23f682368c (patch) | |
tree | 727b240893bf721c5b820b574690e261b1547e80 | |
parent | abd529cebab9018d0fa9b328cdaaab3a51d87b44 (diff) |
Notes
-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 c01169241e49..32aeffb46788 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)); } |