From aa29c3a2434a29e6901f1e98aa0c171ee15d73cc Mon Sep 17 00:00:00 2001 From: navarrop Date: Wed, 23 Jun 2010 13:52:30 +0000 Subject: [PATCH 1/1] 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 --- include/simgrid_config.h.in | 3 +++ src/xbt/xbt_main.c | 1 + 2 files changed, 4 insertions(+) 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" -- 2.20.1