]> git.ipfire.org Git - thirdparty/systemd.git/commit
fs-util: include fcntl.h in fs-util.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jun 2025 16:34:36 +0000 (01:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 24 Jun 2025 18:59:25 +0000 (03:59 +0900)
commit4d0fe93cbaf01fcc2a61f51bb36cd4b07394bab8
tree663ff7b9d4c661db836054562f88e433805551d6
parent118ac16b6e3afb81a9d865dff74af10201a45620
fs-util: include fcntl.h in fs-util.h

fs-util.h provides access_nofollow() but it did not include neither
fcntl.h nor unistd.h, which define F_OK and friends. Hence we cannot use
the function without including one of the headers. Let's include fcntl.h
in fs-util.h, then we can use the function by simply including fs-util.h.
src/basic/fs-util.h