From: Ben Gras Date: Sat, 16 Jul 2011 14:52:21 +0000 (+0200) Subject: mmap rename fix for netbsd libc X-Git-Tag: v3.2.0~452 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/mem/static/tz-link.htm?a=commitdiff_plain;h=cb7a3b0299994500f7e2270b595dc743303502b9;p=minix.git mmap rename fix for netbsd libc --- 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