Explorar o código

fix build without AIO

Corentin Salingue %!s(int64=7) %!d(string=hai) anos
pai
achega
c3928047d5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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