From: degomme Date: Sun, 23 Mar 2014 00:27:59 +0000 (+0100) Subject: Have smpi_bench.c see HAVE_MMAP flag X-Git-Tag: v3_11~198^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d81137f59a4506dd0a4dd524932c26fb59b981c7 Have smpi_bench.c see HAVE_MMAP flag The way internal_config.h is not included in lots of files may cause bugs.. Shouldn't we pass flags through CFLAGS instead ? --- diff --git a/buildtools/Cmake/src/internal_config.h.in b/buildtools/Cmake/src/internal_config.h.in index bd406de4e9..71b4bb4c31 100644 --- a/buildtools/Cmake/src/internal_config.h.in +++ b/buildtools/Cmake/src/internal_config.h.in @@ -129,6 +129,9 @@ /* Define to 1 if mmalloc is compiled in. */ #cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@ +/* Define to 1 if mmap is available */ +#cmakedefine HAVE_MMAP @HAVE_MMAP@ + /* Define to 1 if you have the `getdtablesize' function. */ #cmakedefine HAVE_GETDTABLESIZE @HAVE_GETDTABLESIZE@ diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 9e769c65a2..126d1819d9 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -4,6 +4,7 @@ /* 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. */ +#include "internal_config.h" #include "private.h" #include "xbt/dict.h" #include "xbt/sysdep.h"