#endif
static void xbt_preinit(void) {
- mmalloc_preinit();
+ #ifdef HAVE_MMAP
+ mmalloc_preinit();
+ #endif
xbt_log_preinit();
/* Connect our log channels: that must be done manually under windows */
xbt_log_postexit();
free(xbt_binary_name);
+#ifdef HAVE_MMAP
mmalloc_postexit();
+#endif
}
/** @brief Initialize the xbt mechanisms. */