Pārlūkot izejas kodu

fix build with old simgrid

Samuel Thibault 9 gadi atpakaļ
vecāks
revīzija
67fbbe8f3f
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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
 }
 
 /*