Browse Source

fix build without AIO

Corentin Salingue 7 years ago
parent
commit
c3928047d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 2 - 0
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -138,7 +138,9 @@ enum starpu_unistd_wait_type { STARPU_UNISTD_AIOCB, STARPU_UNISTD_COPY };
 union starpu_unistd_wait_event
 {
 	struct starpu_unistd_work_copy * event_copy;
+#if defined(HAVE_LIBAIO_H) || defined(HAVE_AIO_H)
 	struct starpu_unistd_aiocb event_aiocb;
+#endif
 };
 
 struct starpu_unistd_wait