From 690f8b5a1e1a2e509acc17dea2187ff87a849fdb Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 27 Jun 2003 08:22:45 +0000 Subject: oops. Fix the name so it is "mmap64", not "__mmap64" --- libc/sysdeps/linux/common/mmap64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/mmap64.c') diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c index 1f1b8dc9a..308a328bd 100644 --- a/libc/sysdeps/linux/common/mmap64.c +++ b/libc/sysdeps/linux/common/mmap64.c @@ -19,6 +19,7 @@ /* Massivly hacked up for uClibc by Erik Andersen */ +#include #include #include #include @@ -65,7 +66,7 @@ __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t #else #define __NR___syscall_mmap2 __NR_mmap2 -static inline _syscall6(void *, __syscall_mmap2, void *, addr, +static inline _syscall6(__ptr_t, __syscall_mmap2, __ptr_t, addr, size_t len, int, prot, int, flags, int, fd, off_t, offset); /* This is always 12, even on architectures where PAGE_SHIFT != 12. */ @@ -73,7 +74,7 @@ static inline _syscall6(void *, __syscall_mmap2, void *, addr, # define MMAP2_PAGE_SHIFT 12 # endif -void * __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset) +__ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset) { void *result; if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) { -- cgit v1.2.3