From cb7a3b0299994500f7e2270b595dc743303502b9 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sat, 16 Jul 2011 16:52:21 +0200 Subject: [PATCH] mmap rename fix for netbsd libc --- lib/nbsd_libc/include/namespace.h | 3 +++ lib/nbsd_libc/sys-minix/mmap.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/nbsd_libc/include/namespace.h b/lib/nbsd_libc/include/namespace.h index a2e6ca3c6..88d8c2eae 100644 --- a/lib/nbsd_libc/include/namespace.h +++ b/lib/nbsd_libc/include/namespace.h @@ -921,6 +921,9 @@ #define truncate _truncate #define write _write #define writev _writev +#define minix_mmap _minix_mmap +#define minix_munmap _minix_munmap +#define minix_munmap_text _minix_munmap_text #endif /* __minix */ #endif /* __weak_alias */ diff --git a/lib/nbsd_libc/sys-minix/mmap.c b/lib/nbsd_libc/sys-minix/mmap.c index 8869adada..1a0ea36d0 100644 --- a/lib/nbsd_libc/sys-minix/mmap.c +++ b/lib/nbsd_libc/sys-minix/mmap.c @@ -10,6 +10,9 @@ __weak_alias(vm_remap, _vm_remap) __weak_alias(vm_unmap, _vm_unmap) __weak_alias(vm_getphys, _vm_getphys) __weak_alias(vm_getrefcount, _vm_getrefcount) +__weak_alias(minix_mmap, _minix_mmap) +__weak_alias(minix_munmap, _minix_munmap) +__weak_alias(minix_munmap_text, _minix_munmap_text) #endif