engines/io_uring: fix compilation conflict with Android NDK
authorDevriesL <therkduan@gmail.com>
Tue, 9 Mar 2021 14:44:08 +0000 (22:44 +0800)
committerDevriesL <therkduan@gmail.com>
Tue, 9 Mar 2021 14:44:08 +0000 (22:44 +0800)
Android NDK already uses __errno in errno.h, rename variable __errno
to fix this conflict.

Signed-off-by: DevriesL <therkduan@gmail.com>
engines/io_uring.c

index c9036ba079b808b65f15a7d3ea920424018471ca..b962e8041b6f8d113669b4b2a31224a68d19aa0f 100644 (file)
@@ -696,11 +696,11 @@ static int fio_ioring_post_init(struct thread_data *td)
 
        err = fio_ioring_queue_init(td);
        if (err) {
-               int __errno = errno;
+               int init_err = errno;
 
-               if (__errno == ENOSYS)
+               if (init_err == ENOSYS)
                        log_err("fio: your kernel doesn't support io_uring\n");
-               td_verror(td, __errno, "io_queue_init");
+               td_verror(td, init_err, "io_queue_init");
                return 1;
        }