瀏覽代碼

FxT: only include sys/syscall.h on Linux.

Cyril Roelandt 13 年之前
父節點
當前提交
44119c0beb
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 4 2
      src/common/fxt.c
  2. 0 1
      src/common/fxt.h

+ 4 - 2
src/common/fxt.c

@@ -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() */
 #endif
 
 #define _STARPU_PROF_BUFFER_SIZE  (8*1024*1024)

+ 0 - 1
src/common/fxt.h

@@ -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>