-/* 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
#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 <math.h>
/* ***** Whether to use `mmalloc` of the underlying malloc ***** */
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 {