2
0
mirror of git://github.com/lxc/lxc synced 2025-08-30 19:59:35 +00:00

build: refuse to compile with unsupported liburing version

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-11-04 15:45:58 +01:00
parent 20acdbb8c2
commit 5c9baf458d

View File

@@ -284,8 +284,10 @@ endforeach
if wants_io_uring == true
liburing = dependency('liburing')
have = cc.get_define('IORING_POLL_ADD_MULTI', prefix : '#include <liburing.h>', dependencies: liburing)
conf.set10('HAVE_LIBURING', have)
if cc.has_function('io_uring_prep_poll_add', prefix : '#include <liburing.h>', dependencies: liburing) == false
error('liburing version does not support IORING_POLL_ADD_MULTI')
endif
conf.set10('HAVE_LIBURING', true)
endif
sh = find_program('sh')