diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-04-28 17:48:09 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-04-29 17:27:36 -0300 |
commit | 62ac93a7b5adf4036695e8716d32758eed6eb180 (patch) | |
tree | 1b9e520011e038f88160516c2a263acc1242eb08 /linecnt.sh | |
parent | profiles: fix new game profiles (diff) | |
download | firejail-62ac93a7b5adf4036695e8716d32758eed6eb180.tar.gz firejail-62ac93a7b5adf4036695e8716d32758eed6eb180.tar.zst firejail-62ac93a7b5adf4036695e8716d32758eed6eb180.zip |
landlock: fix building without landlock.h
landlock.h may not be available on the system (such as with older
versions of Linux API headers), so only try to include it if
`HAVE_LANDLOCK` is defined.
This fixes the following error from `build_debian_package` (which uses
`debian:buster`) on GitLab CI[1]:
$ ./mkdeb.sh --enable-fatal-warnings
[...]
gcc [...] -c ../../src/firejail/landlock.c -o ../../src/firejail/landlock.o
../../src/firejail/landlock.c:22:10: fatal error: linux/landlock.h: No such file or directory
#include <linux/landlock.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
This amends commit a05ae97af ("landlock: amend empty functions and
comments", 2024-04-08) / PR #6305.
Relates to #6078.
[1] https://gitlab.com/Firejail/firejail_ci/-/jobs/6743161059
Diffstat (limited to 'linecnt.sh')
0 files changed, 0 insertions, 0 deletions