Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use MAP_PREFAULT_READ on FreeBSD as en equivalent to MAP_POPULATE.
[simgrid.git] / src / mc / RegionSnapshot.cpp
index 7acb69d..c10dee8 100644 (file)
@@ -7,6 +7,9 @@
 #include <cstdlib>
 
 #include <sys/mman.h>
+#ifdef __FreeBSD__
+# define MAP_POPULATE MAP_PREFAULT_READ
+#endif
 
 #include "mc/mc.h"
 #include "src/mc/mc_snapshot.h"