From d81137f59a4506dd0a4dd524932c26fb59b981c7 Mon Sep 17 00:00:00 2001 From: degomme Date: Sun, 23 Mar 2014 01:27:59 +0100 Subject: [PATCH] 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 ? --- buildtools/Cmake/src/internal_config.h.in | 3 +++ src/smpi/smpi_bench.c | 1 + 2 files changed, 4 insertions(+) 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" -- 2.20.1