diff options
author | Ondrej Kozina <okozina@redhat.com> | 2023-11-09 11:24:29 +0100 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2023-11-15 13:33:05 +0100 |
commit | 83bb3648e37c21a105a2fdf0d7fbf9b20fe14e3c (patch) | |
tree | 79e8dd3b1d062eeb0e2f5e01f485ced506902b72 | |
parent | 564379618a0c8d9976935d773b308be0a1323699 (diff) | |
download | cryptsetup-83bb3648e37c21a105a2fdf0d7fbf9b20fe14e3c.tar.gz |
Fix invalid comparison of bool and int types in root meson.build.
-rw-r--r-- | meson.build | 4 |
1 files 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') |