瀏覽代碼

conditionally include hwloc/glibc-sched.h

Olivier Aumage 7 年之前
父節點
當前提交
0ae0554a6a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      starpurm/src/starpurm_dlb.c

+ 4 - 1
starpurm/src/starpurm_dlb.c

@@ -22,12 +22,15 @@
 #include <stdio.h>
 #include <string.h>
 #include <assert.h>
+#include <config.h>
+
 #include <hwloc.h>
+#ifdef HAVE_HWLOC_GLIBC_SCHED_H
 #include <hwloc/glibc-sched.h>
+#endif
 #include <pthread.h>
 #include <starpu.h>
 #include <starpurm.h>
-#include <config.h>
 #include <starpurm_private.h>
 
 #ifndef STARPURM_HAVE_DLB