From: Christian Brauner Date: Thu, 4 Nov 2021 14:45:58 +0000 (+0100) Subject: build: refuse to compile with unsupported liburing version X-Git-Tag: lxc-5.0.0~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c9baf458d813319f3d35655fdaaa6c6dda6f159;p=thirdparty%2Flxc.git build: refuse to compile with unsupported liburing version Signed-off-by: Christian Brauner --- diff --git a/meson.build b/meson.build index f038fe4c5..8f8331a3d 100644 --- a/meson.build +++ b/meson.build @@ -284,8 +284,10 @@ endforeach if wants_io_uring == true liburing = dependency('liburing') - have = cc.get_define('IORING_POLL_ADD_MULTI', prefix : '#include ', dependencies: liburing) - conf.set10('HAVE_LIBURING', have) + if cc.has_function('io_uring_prep_poll_add', prefix : '#include ', dependencies: liburing) == false + error('liburing version does not support IORING_POLL_ADD_MULTI') + endif + conf.set10('HAVE_LIBURING', true) endif sh = find_program('sh')