]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate irqtop on sys/epoll.h and cpu_set_t
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:05:53 +0000 (14:05 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 14 May 2026 11:19:43 +0000 (13:19 +0200)
The target needs these, encode this in the build system.

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

index f768252a5268247cbbfb60253ccd1b07c15d4d4c..c899a281a738a12b3824bed40c554556b98ea6a4 100644 (file)
@@ -143,6 +143,7 @@ headers = '''
         sys/disk.h
         sys/disklabel.h
         sys/endian.h
+        sys/epoll.h
         sys/file.h
         sys/io.h
         sys/ioccom.h
@@ -2277,7 +2278,10 @@ if opt and not is_disabler(exe)
   bashcompletions += ['lsirq']
 endif
 
-opt = get_option('build-irqtop').allowed()
+opt = get_option('build-irqtop') \
+      .require(conf.get('HAVE_SYS_EPOLL_H').to_string() == '1') \
+      .require(conf.get('HAVE_CPU_SET_T').to_string() == '1') \
+      .allowed()
 exe = executable(
   'irqtop',
   irqtop_sources,