diff options
-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(); |