Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Fix extern 'C' error from clang
[simgrid.git] / src / mc / mc_smx.cpp
index b7135d6..09571a1 100644 (file)
@@ -84,7 +84,7 @@ void Process::refresh_simix()
   this->read_variable("simix_global", &simix_global_p, sizeof(simix_global_p));
 
   // simix_global = REMOTE(*simix_global)
-  simgrid::simix::Global simix_global;
+  union { simgrid::simix::Global simix_global };
   this->read_bytes(&simix_global, sizeof(simix_global),
     remote(simix_global_p));