X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/149c63f36e15b8500b1e826bda5138318ff7ba2b..ea74f5d95928a521a588737e81f1de94eef25d19:/src/xbt/mmalloc/mm_legacy.c?ds=sidebyside diff --git a/src/xbt/mmalloc/mm_legacy.c b/src/xbt/mmalloc/mm_legacy.c index 002d9c54da..3228074080 100644 --- a/src/xbt/mmalloc/mm_legacy.c +++ b/src/xbt/mmalloc/mm_legacy.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. The SimGrid Team. +/* Copyright (c) 2010-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -13,9 +13,8 @@ #include "mmprivate.h" #include "src/internal_config.h" -#include "src/mc/mc_base.h" #include "src/mc/remote/mc_protocol.h" -#include "src/xbt_modinter.h" +#include "xbt/xbt_modinter.h" #include /* ***** Whether to use `mmalloc` of the underlying malloc ***** */ @@ -117,7 +116,7 @@ XBT_ATTRIB_CONSTRUCTOR(101) static void mm_legacy_constructor() if (mm_initialized) return; mm_initializing = 1; - __malloc_use_mmalloc = getenv(MC_ENV_VARIABLE) ? 1 : 0; + __malloc_use_mmalloc = getenv(MC_ENV_SOCKET_FD) ? 1 : 0; if (__malloc_use_mmalloc) { __mmalloc_current_heap = mmalloc_preinit(); } else {