diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c index 53d18dada5..f5bd64f8d3 100644 --- a/src/shared/seccomp-util.c +++ b/src/shared/seccomp-util.c @@ -1,5 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* This needs to be included before the seccomp headers, otherwise missing syscalls will be defined in this + * file and pass the ifdef, but they won't be defined in the seccomp headers so things like + * SCMP_SYS(fchmodat2) will resolve as empty and fail the build with older glibc/libseccomp. */ +#include #include #include #include