meson: make source files including nspawn-settings.h depend on libseccomp

Since nspawn-settings.h includes seccomp.h, any file that includes
nspawn-settings.h should depend on libseccomp so the correct header path where
seccomp.h lives is added to the header search paths.

It's especially important for distros such as openSUSE where seccomp.h is not
shipped in /usr/include but /usr/include/libseccomp.

This patch is similar to 8238423095.
This commit is contained in:
Franck Bui 2019-04-30 16:10:13 +02:00 committed by Lennart Poettering
parent 8b803ad634
commit 9f3f596477
2 changed files with 3 additions and 3 deletions

View file

@ -128,12 +128,12 @@ fuzzers += [
[['src/fuzz/fuzz-nspawn-settings.c'],
[libshared,
libnspawn_core],
[]],
[libseccomp]],
[['src/fuzz/fuzz-nspawn-oci.c'],
[libshared,
libnspawn_core],
[]],
[libseccomp]],
[['src/fuzz/fuzz-calendarspec.c'],
[libshared],

View file

@ -48,7 +48,7 @@ tests += [
[['src/nspawn/test-nspawn-tables.c'],
[libnspawn_core,
libshared],
[]],
[libseccomp]],
[['src/nspawn/test-patch-uid.c'],
[libnspawn_core,