From 05f684a6cc13cb2c9583fcbc17d6d855c77a90e3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 29 Apr 2024 11:43:53 -0600 Subject: [PATCH] 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 --- plugins/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1