]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
sed_opal: Only build when we really have sed_opal headers
authorWarner Losh <imp@bsdimp.com>
Mon, 29 Apr 2024 17:43:53 +0000 (11:43 -0600)
committerDaniel Wagner <wagi@monom.org>
Tue, 30 Apr 2024 09:39:28 +0000 (11:39 +0200)
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 <imp@bsdimp.com>
plugins/meson.build

index e919d2736138d889ae306e401a2bf665976f6016..146fa2a0ad35a40e40af389a0af09baa8658e90e 100644 (file)
@@ -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