]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include: define pidfd syscalls if needed
authorMarkus Mayer <mmayer@broadcom.com>
Tue, 1 Aug 2023 20:08:24 +0000 (13:08 -0700)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Aug 2023 10:04:12 +0000 (12:04 +0200)
commit7f45939f24d640ec742b857888e29a2bf2bf1fd5
tree698470c1f88c942b5e2526dba64c3122032e2ff6
parent1fc3471dfb8b3dc53af47115d0579cc6188f51d8
include: define pidfd syscalls if needed

If the kernel headers are too old to provide the pidfd syscall numbers,
let's define them ourselves. This can be helpful while cross-compiling.
The runtime environment may provide a kernel that is new enough to
handle the calls, even if the toolchain doesn't.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
include/pidfd-utils.h