Przeglądaj źródła

conditionally include hwloc/glibc-sched.h

Olivier Aumage 6 lat temu
rodzic
commit
0ae0554a6a
1 zmienionych plików z 4 dodań i 1 usunięć
  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