diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-06-28 13:27:20 -0700 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-06-28 13:27:20 -0700 |
commit | 79b506457edc60d0b34fadefc0c84176b18b09b1 (patch) | |
tree | e03858c50e71071f04f8148a5c476b7be54c53b9 | |
parent | 3b2eb2115216d50d17bae2c7ccd6dcb53fa75524 (diff) |
aio-cancel fixes
-rw-r--r-- | aio-cancel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aio-cancel.c b/aio-cancel.c index c168224..f5936cc 100644 --- a/aio-cancel.c +++ b/aio-cancel.c @@ -18,6 +18,7 @@ #include <linux/fs.h> #include <unistd.h> #include <stdio.h> +#include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> @@ -92,13 +93,12 @@ static unsigned reap_events(io_context_t io_ctx, unsigned long iosize) int main(int argc, char const *argv[]) { io_context_t io_ctx; - struct stat stat; struct iocb *iocb; struct io_event cancelled; void *buffer; unsigned long nr_ios, iodepth, iosize, in_flight = 0; off_t blocks; - int i, ret, fd; + int ret, fd; if (argc != 5) usage(); |