@@ -29,8 +29,10 @@
#include <windows.h>
#endif
-#ifdef __FreeBSD__
-#include <sys/thr.h> /* for thr_self() */
+#ifdef __linux__
+#include <sys/syscall.h> /* for SYS_gettid */
+#elif defined(__FreeBSD__)
+#include <sys/thr.h> /* for thr_self() */
#define _STARPU_PROF_BUFFER_SIZE (8*1024*1024)
@@ -103,7 +103,6 @@
#define _STARPU_FUT_TASK_WAIT_FOR_ALL 0x513b
#ifdef STARPU_USE_FXT
-#include <sys/syscall.h> /* pour les définitions de SYS_xxx */
#include <fxt/fxt.h>
#include <fxt/fut.h>