From 081e72f41af2ca987882c03efc3960c1f87ecaa6 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" <ldv@altlinux.org> Date: Tue, 21 Jun 2011 15:11:57 +0000 Subject: [PATCH] Fix build when libaio-devel is not available * desc.c: Do not compile code that uses struct iocb unless HAVE_LIBAIO_H is set. Reported-by: Denys Vlasenko <dvlasenk@redhat.com> --- desc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desc.c b/desc.c index f9100c46..192f8b03 100644 --- a/desc.c +++ b/desc.c @@ -815,6 +815,8 @@ sys_io_destroy(struct tcb *tcp) return 0; } +#ifdef HAVE_LIBAIO_H + enum iocb_sub { SUB_NONE, SUB_COMMON, SUB_POLL, SUB_VECTOR }; @@ -860,6 +862,9 @@ print_common_flags(struct iocb *iocb) if (iocb->u.c.flags & ~IOCB_RESFD) tprintf("flags=%x, ", iocb->u.c.flags); } + +#endif /* HAVE_LIBAIO_H */ + int sys_io_submit(struct tcb *tcp) { -- 2.40.0