From 83bb3648e37c21a105a2fdf0d7fbf9b20fe14e3c Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Thu, 9 Nov 2023 11:24:29 +0100 Subject: [PATCH] Fix invalid comparison of bool and int types in root meson.build. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1bf5730c..0c723464 100644 --- a/meson.build +++ b/meson.build @@ -108,7 +108,7 @@ foreach header : required_headers conf.set10('HAVE_' + header.underscorify().to_upper(), cc.has_header(header)) endforeach -fcntl_header = conf.get('HAVE_FCNTL_H') == true ? 'fcntl.h' : 'stdio.h' +fcntl_header = conf.get('HAVE_FCNTL_H') == 1 ? 'fcntl.h' : 'stdio.h' if cc.has_header_symbol(fcntl_header, 'O_CLOEXEC') conf.set10('HAVE_DECL_O_CLOEXEC', true) else @@ -206,7 +206,7 @@ if cc.has_function('dlvsym', endif if get_option('external-tokens') - assert(conf.has('HAVE_DLVSYM') and conf.get('HAVE_DLVSYM') == true, + assert(conf.has('HAVE_DLVSYM') and conf.get('HAVE_DLVSYM') == 1, 'dl library has no dlvsym function') conf.set10('USE_EXTERNAL_TOKENS', true, description: 'Use external tokens')