]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
mainloop: make ifdefs easier to follow
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Oct 2021 15:38:37 +0000 (17:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Oct 2021 15:38:37 +0000 (17:38 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/mainloop.c

index 17a4d55293b1254c53530f22092bc8e7892e5d7b..3ff955962dfbe7a934731253ba8a55648e6215b6 100644 (file)
@@ -108,7 +108,7 @@ static inline int __io_uring_open(struct lxc_async_descr *descr)
        return ret_errno(ENOSYS);
 }
 
-#else
+#else /* !HAVE_LIBURING */
 
 static inline int __io_uring_open(struct lxc_async_descr *descr)
 {
@@ -315,7 +315,7 @@ static int __lxc_mainloop_io_uring(struct lxc_async_descr *descr, int timeout_ms
                        return error_ret(0, "Closing because there are no more handlers");
        }
 }
-#endif
+#endif /* HAVE_LIBURING */
 
 static int __lxc_mainloop_epoll(struct lxc_async_descr *descr, int timeout_ms)
 {