From: navarrop Date: Wed, 23 Jun 2010 13:52:30 +0000 (+0000) Subject: Need to have the HAVE_MMAP variable. X-Git-Tag: v3_5~890 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aa29c3a2434a29e6901f1e98aa0c171ee15d73cc?hp=a7f7fc80d7a24fe1bcb847dc16b2bee62f848f25 Need to have the HAVE_MMAP variable. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7922 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index 0eb76a2cef..ef054c798c 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -28,6 +28,9 @@ #ifndef SIMGRID_PUBLIC_CONFIG_H #define SIMGRID_PUBLIC_CONFIG_H +/* Define to 1 if you have the `mmap' function. */ +#cmakedefine HAVE_MMAP @HAVE_MMAP@ + /* Get the config */ #undef SIMGRID_NEED_GETLINE #undef SIMGRID_NEED_ASPRINTF diff --git a/src/xbt/xbt_main.c b/src/xbt/xbt_main.c index 8ce310ba9b..6f5688ff60 100644 --- a/src/xbt/xbt_main.c +++ b/src/xbt/xbt_main.c @@ -7,6 +7,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/misc.h" +#include "simgrid_config.h" /*HAVE_MMAP*/ #include "time.h" /* to seed the random generator */ #include "xbt/sysdep.h"