From 1098e770381274687f9569b22b50dac4000e9ed4 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 13 Mar 2016 22:28:52 +0100 Subject: [PATCH 1/1] try to fix the windows build --- src/mc/Client.hpp | 5 ++++- src/mc/mc_global.cpp | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mc/Client.hpp b/src/mc/Client.hpp index 69248bcfc7..b4f95caa90 100644 --- a/src/mc/Client.hpp +++ b/src/mc/Client.hpp @@ -7,8 +7,9 @@ #ifndef SIMGRID_MC_CLIENT_H #define SIMGRID_MC_CLIENT_H -#include +#include "src/internal_config.h" +#include #include #include @@ -38,7 +39,9 @@ public: void ignoreHeap(void* addr, std::size_t size); void unignoreHeap(void* addr, std::size_t size); void declareSymbol(const char *name, int* value); +#if HAVE_UCONTEXT_H void declareStack(void *stack, size_t size, smx_process_t process, ucontext_t* context); +#endif // Singleton :/ // TODO, remove the singleton antipattern. diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index d47939e795..6f985f1f9e 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -42,8 +42,7 @@ #include "src/mc/mc_protocol.h" #include "src/mc/Client.hpp" -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, - "Logging specific to MC (global)"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, "Logging specific to MC (global)"); e_mc_mode_t mc_mode; -- 2.20.1