Module: xenomai-forge
Branch: next
Commit: 4f0a93756e14df890f199500bbebf11533aa460a
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4f0a93756e14df890f199500bbebf11533aa460a

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Aug  7 14:55:27 2014 +0200

boilerplate/tlsf: call glibc's mmap() directly

---

 lib/boilerplate/tlsf/tlsf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/boilerplate/tlsf/tlsf.c b/lib/boilerplate/tlsf/tlsf.c
index 53ee1ce..207de21 100644
--- a/lib/boilerplate/tlsf/tlsf.c
+++ b/lib/boilerplate/tlsf/tlsf.c
@@ -419,7 +419,7 @@ static __inline__ void *get_new_area(size_t * size)
 
 #if USE_MMAP
     *size = ROUNDUP(*size, PAGE_SIZE);
-    if ((area = mmap(0, *size, PROT_READ | PROT_WRITE, MAP_PRIVATE | 
MAP_ANONYMOUS, -1, 0)) != MAP_FAILED)
+    if ((area = __STD(mmap(0, *size, PROT_READ | PROT_WRITE, MAP_PRIVATE | 
MAP_ANONYMOUS, -1, 0))) != MAP_FAILED)
        return area;
 #endif
     return ((void *) ~0);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to