From: Thomas Weißschuh Date: Wed, 29 Apr 2026 12:11:22 +0000 (+0200) Subject: meson: gate partx on linux/blkpg.h X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a75e3ff3ba8b7bbd4eb927ff1bc908db4a1433ae;p=thirdparty%2Futil-linux.git meson: gate partx on linux/blkpg.h The target needs this header, encode this in the build system. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 99d713cf2..e815a3739 100644 --- a/meson.build +++ b/meson.build @@ -107,6 +107,7 @@ headers = ''' utmp.h utmpx.h asm/io.h + linux/blkpg.h linux/blkzoned.h linux/capability.h linux/cdrom.h @@ -2578,7 +2579,9 @@ if opt and not is_disabler(exe) bashcompletions += ['cfdisk'] endif -opt = get_option('build-partx').allowed() +opt = get_option('build-partx') \ + .require(conf.get('HAVE_LINUX_BLKPG_H').to_string() == '1') \ + .allowed() exe = executable( 'addpart', addpart_sources,