Explorar o código

fix build with old simgrid

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
67fbbe8f3f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/core/simgrid.c

+ 2 - 0
src/core/simgrid.c

@@ -302,12 +302,14 @@ void _starpu_simgrid_init(int *argc, char ***argv)
 
 void _starpu_simgrid_deinit(void)
 {
+#ifdef HAVE_MSG_PROCESS_ATTACH
 	if (simgrid_started == 2)
 	{
 		/* Started with MSG_process_attach, now detach */
 		MSG_process_detach();
 		simgrid_started = 0;
 	}
+#endif
 }
 
 /*