@@ -15,7 +15,6 @@
*/
#include <common/barrier.h>
-#include <pthread.h>
int _starpu_barrier_init(_starpu_barrier_t *barrier, int count)
{
@@ -21,6 +21,8 @@
# define PTHREAD_BARRIER_SERIAL_THREAD -1
#endif
+#include <pthread.h>
+
typedef struct {
int count;
int reached;