Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Have smpi_bench.c see HAVE_MMAP flag
authordegomme <degomme@localhost.localdomain>
Sun, 23 Mar 2014 00:27:59 +0000 (01:27 +0100)
committerdegomme <degomme@localhost.localdomain>
Sun, 23 Mar 2014 00:27:59 +0000 (01:27 +0100)
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
src/smpi/smpi_bench.c

index bd406de..71b4bb4 100644 (file)
 /* 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@
 
index 9e769c6..126d181 100644 (file)
@@ -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"