]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate tunelp on linux/lp.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:26:45 +0000 (23:26 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 10:38:37 +0000 (12:38 +0200)
The target needs this header, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 659c2530a3497710d906b6ab93eb5407ffa9ebbc..793da8563af4edb6b9b41a03403f06c0d5e8d4b1 100644 (file)
@@ -118,6 +118,7 @@ headers = '''
         linux/gsmmux.h
         linux/if_alg.h
         linux/landlock.h
+        linux/lp.h
         linux/kcmp.h
         linux/net_namespace.h
         linux/nsfs.h
@@ -1627,7 +1628,9 @@ if not is_disabler(exe)
   bashcompletions += ['readprofile']
 endif
 
-opt = get_option('build-tunelp').allowed()
+opt = get_option('build-tunelp') \
+      .require(conf.get('HAVE_LINUX_LP_H').to_string() == '1') \
+      .allowed()
 exe = executable(
   'tunelp',
   tunelp_sources,