]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util,nsresource: explicitly include sched.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Jun 2025 16:03:26 +0000 (01:03 +0900)
committerMike Yuan <me@yhndnzj.com>
Sun, 6 Jul 2025 11:28:46 +0000 (13:28 +0200)
commit8d29f31bf683e9fa9e8eedf7da5c134286c93f17
treef2e1965ee35b6b63861d562cbd34a3bd319f3c90
parentcfba9b9eab911879a3f30132d9f17a8fd3edb943
namespace-util,nsresource: explicitly include sched.h

These source files uses symbols provided by sched.h, e.g.
setns(), unshare(), CLONE_NEWNS, and friends, but they do not explicitly
include sched.h. Currently, it is included indirectly via missing_syscall.h,
which is included by e.g. pidfd-util.h.
Let's explicitly include headers that provides symbols used in the code.

This is similar to 4f18ff2e29b8054f30b084abcabf5f689f4b340b, but for sched.h.
src/basic/namespace-util.c
src/nsresourced/nsresourcework.c