From: Christian Brauner Date: Sat, 30 Oct 2021 15:38:37 +0000 (+0200) Subject: mainloop: make ifdefs easier to follow X-Git-Tag: lxc-5.0.0~56^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29412c07f78bfe285ddb6fb601761e2775c4cd9;p=thirdparty%2Flxc.git mainloop: make ifdefs easier to follow Signed-off-by: Christian Brauner --- diff --git a/src/lxc/mainloop.c b/src/lxc/mainloop.c index 17a4d5529..3ff955962 100644 --- a/src/lxc/mainloop.c +++ b/src/lxc/mainloop.c @@ -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) {