mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 14:45:24 +00:00
build: refuse to compile with unsupported liburing version
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
93be4e5121
commit
a616a311a3
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user