From: Warner Losh Date: Mon, 29 Apr 2024 17:43:53 +0000 (-0600) Subject: sed_opal: Only build when we really have sed_opal headers X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=05f684a6cc13cb2c9583fcbc17d6d855c77a90e3;p=users%2Fsagi%2Fnvme-cli.git sed_opal: Only build when we really have sed_opal headers There's already code to not build the sed opal plugin when the necessary headers aren't present. However, it doesn't work, since HAVE_SED_OPAL is always defined to be either 0 or 1, so the meson has() return true, even when the value is 0, causing the sed-opal plugin to build, even when the header files it needs are missing. Signed-off-by: Warner Losh --- diff --git a/plugins/meson.build b/plugins/meson.build index e919d273..146fa2a0 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -30,7 +30,7 @@ if json_c_dep.found() ] subdir('solidigm') subdir('ocp') - if conf.has('HAVE_SED_OPAL') + if conf.get('HAVE_SED_OPAL') != 0 subdir('sed') endif endif