aboutsummaryrefslogtreecommitdiff
path: root/misc/sys/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sys/mman.h')
-rw-r--r--misc/sys/mman.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index cddb451..a39639c 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -44,9 +44,14 @@ __BEGIN_DECLS
extern void *mmap (void *__addr, size_t __len, int __prot,
int __flags, int __fd, __off_t __offset) __THROW;
#else
-extern void *mmap (void *__addr, size_t __len, int __prot,
- int __flags, int __fd, __off_t __offset) __THROW
- __asm__ ("mmap64");
+# ifdef __REDIRECT
+extern void * __REDIRECT (mmap,
+ (void *__addr, size_t __len, int __prot,
+ int __flags, int __fd, __off64_t __offset) __THROW,
+ mmap64);
+# else
+# define mmap mmap64
+# endif
#endif
#ifdef __USE_LARGEFILE64
extern void *mmap64 (void *__addr, size_t __len, int __prot,