Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to fix the windows build
[simgrid.git] / src / mc / Client.hpp
index 69248bc..b4f95ca 100644 (file)
@@ -7,8 +7,9 @@
 #ifndef SIMGRID_MC_CLIENT_H
 #define SIMGRID_MC_CLIENT_H
 
 #ifndef SIMGRID_MC_CLIENT_H
 #define SIMGRID_MC_CLIENT_H
 
-#include <cstddef>
+#include "src/internal_config.h"
 
 
+#include <cstddef>
 #include <memory>
 
 #include <xbt/base.h>
 #include <memory>
 
 #include <xbt/base.h>
@@ -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);
   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);
   void declareStack(void *stack, size_t size, smx_process_t process, ucontext_t* context);
+#endif
 
   // Singleton :/
   // TODO, remove the singleton antipattern.
 
   // Singleton :/
   // TODO, remove the singleton antipattern.