Przeglądaj źródła

simgrid: Avoid including xbt/synchro.h when we have the s4u equivalent

Samuel Thibault 5 lat temu
rodzic
commit
37ead48eee
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/common/thread.c

+ 4 - 1
src/common/thread.c

@@ -29,7 +29,10 @@
 #include <limits.h>
 
 #ifdef STARPU_SIMGRID
-#ifdef STARPU_HAVE_XBT_SYNCHRO_H
+#ifdef STARPU_HAVE_SIMGRID_MUTEX_H
+#include <simgrid/mutex.h>
+#include <simgrid/cond.h>
+#elif defined(STARPU_HAVE_XBT_SYNCHRO_H)
 #include <xbt/synchro.h>
 #else
 #include <xbt/synchro_core.h>