1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

meson: do not build module-util.c when libkmod is not found

Follow-up for 3cb9b42af3b205fba176ebf51ce0e07739698278 (#9516).

Fixes oss-fuzz-9532.
This commit is contained in:
Yu Watanabe 2018-07-22 23:25:07 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent f330408d62
commit ba323bbead

View File

@ -64,7 +64,6 @@ shared_sources = files('''
machine-pool.c
machine-pool.h
module-util.h
module-util.c
nsflags.c
nsflags.h
output-mode.c
@ -125,6 +124,10 @@ if conf.get('HAVE_LIBIPTC') == 1
shared_sources += files('firewall-util.c')
endif
if conf.get('HAVE_KMOD') == 1
shared_sources += files('module-util.c')
endif
libshared_name = 'systemd-shared-@0@'.format(meson.project_version())
libshared_deps = [threads,