summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/mmap.c')
-rw-r--r--lib/libc/sys/mmap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c
index 2debc8d2186..a97ae570ef1 100644
--- a/lib/libc/sys/mmap.c
+++ b/lib/libc/sys/mmap.c
@@ -32,16 +32,13 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mmap.c,v 1.8 1998/01/02 05:32:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mmap.c,v 1.9 2002/09/17 12:57:50 mickey Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/syscall.h>
-
-#ifdef lint
-quad_t __syscall(quad_t, ...);
-#endif
+#include <unistd.h>
/*
* This function provides 64-bit offset padding that
@@ -57,6 +54,6 @@ mmap(addr, len, prot, flags, fd, offset)
off_t offset;
{
- return((void *)(long)__syscall((quad_t)SYS_mmap, addr, len, prot,
+ return((void *)(long)__syscall(SYS_mmap, addr, len, prot,
flags, fd, 0, offset));
}