From 04e49c1bdb05f2821aec35cb6bfb58afda89980d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 17 Feb 2000 00:30:21 +0000 Subject: [PATCH] Correct prototype for __syscall_mmap2. --- sysdeps/unix/sysv/linux/powerpc/mmap64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/powerpc/mmap64.c b/sysdeps/unix/sysv/linux/powerpc/mmap64.c index 90a6499ea26..eb9632dfa30 100644 --- a/sysdeps/unix/sysv/linux/powerpc/mmap64.c +++ b/sysdeps/unix/sysv/linux/powerpc/mmap64.c @@ -28,7 +28,7 @@ #include #ifdef __NR_mmap2 -extern int __syscall_mmap2(__ptr_t, size_t, int, int, int, off_t); +extern __ptr_t __syscall_mmap2 (__ptr_t, size_t, int, int, int, off_t); static int have_no_mmap2; #endif @@ -42,7 +42,7 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset) /* This will be always 12, no matter what page size is. */ __ptr_t result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags, - fd, (off_t) (offset >> PAGE_SHIFT)); + fd, (off_t) (offset >> PAGE_SHIFT)); if (result != (__ptr_t) -1 || errno != ENOSYS) return result; -- 2.47.2