From e42098ece35ef06fe7df355ee3f258d61eabbfdb Mon Sep 17 00:00:00 2001 From: navarrop Date: Fri, 7 May 2010 12:56:29 +0000 Subject: [PATCH 1/1] Enable mac compilation with MMAP. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7722 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/mmalloc/mmap-sup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xbt/mmalloc/mmap-sup.c b/src/xbt/mmalloc/mmap-sup.c index 733b3250ca..f32e0aa1d9 100644 --- a/src/xbt/mmalloc/mmap-sup.c +++ b/src/xbt/mmalloc/mmap-sup.c @@ -9,6 +9,10 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#ifndef MAP_ANONYMOUS + #define MAP_ANONYMOUS MAP_ANON +#endif + #ifdef HAVE_UNISTD_H #include /* Prototypes for lseek */ #endif -- 2.20.1