From: Yu Watanabe Date: Sat, 21 Jun 2025 16:34:36 +0000 (+0900) Subject: fs-util: include fcntl.h in fs-util.h X-Git-Tag: v258-rc1~254^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d0fe93cbaf01fcc2a61f51bb36cd4b07394bab8;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index 1150f914be3..d972b6d1325 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -1,6 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once +#include /* IWYU pragma: export */ + #include "forward.h" #include "lock-util.h"