Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't use ucontextes on Apple hosts
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 2 Apr 2023 10:33:24 +0000 (12:33 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 2 Apr 2023 10:33:24 +0000 (12:33 +0200)
src/mc/remote/AppSide.cpp

index 75d5f5a..d6e0188 100644 (file)
@@ -461,6 +461,7 @@ void AppSide::declare_symbol(const char* name, int* value) const
  *  when we analyze/compare the content of the heap so it must be told where
  *  they are with this function.
  */
+#if HAVE_UCONTEXT_H /* Apple don't want us to use ucontexts */
 void AppSide::declare_stack(void* stack, size_t size, ucontext_t* context) const
 {
   if (not MC_is_active() || not need_memory_info_)
@@ -483,4 +484,6 @@ void AppSide::declare_stack(void* stack, size_t size, ucontext_t* context) const
   xbt_die("Cannot really call declare_stack() in non-SIMGRID_MC mode.");
 #endif
 }
+#endif
+
 } // namespace simgrid::mc