From 5c9baf458d813319f3d35655fdaaa6c6dda6f159 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 4 Nov 2021 15:45:58 +0100 Subject: [PATCH] build: refuse to compile with unsupported liburing version Signed-off-by: Christian Brauner --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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') -- 2.47.2