Skip to content

Commit 4be9e04

Browse files
jtlaytonbrauner
authored andcommitted
vfs: add needed headers for new struct delegation definition
The definition of struct delegation uses stdint.h integer types. Add the necessary headers to ensure that always works. Fixes: 1602bad ("vfs: expose delegation support to userland") Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 01c9c30 commit 4be9e04

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/uapi/linux/fcntl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
#include <asm/fcntl.h>
66
#include <linux/openat2.h>
7+
#ifdef __KERNEL__
8+
#include <linux/types.h>
9+
#else
10+
#include <stdint.h>
11+
#endif
712

813
#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
914
#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)

0 commit comments

Comments
 (0)