mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 16:20: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
|
if wants_io_uring == true
|
||||||
liburing = dependency('liburing')
|
liburing = dependency('liburing')
|
||||||
have = cc.get_define('IORING_POLL_ADD_MULTI', prefix : '#include <liburing.h>', dependencies: liburing)
|
if cc.has_function('io_uring_prep_poll_add', prefix : '#include <liburing.h>', dependencies: liburing) == false
|
||||||
conf.set10('HAVE_LIBURING', have)
|
error('liburing version does not support IORING_POLL_ADD_MULTI')
|
||||||
|
endif
|
||||||
|
conf.set10('HAVE_LIBURING', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
sh = find_program('sh')
|
sh = find_program('sh')
|
||||||
|
Loading…
Reference in New Issue
Block a user