Skip to content

Commit 982a13d

Browse files
committed
lapi/fanotify.h: Include <linux/types.h>
to add kernel types (__s32, __u32, ...). This fixes build on various Buildroot toolchains: In file included from fanotify.h:14, from fanotify04.c:25: ../../../../include/lapi/fanotify.h:198:2: error: unknown type name ‘__s32’ 198 | __s32 error; | ^~~~~ ../../../../include/lapi/fanotify.h:199:2: error: unknown type name ‘__u32’ 199 | __u32 error_count; | ^~~~~ NOTE: Historically we tried to minimize number of linux includes, because it would often lead to broken builds. Headers got better over time and LTP also dropped support for archaic kernels over time. Therefore we can keep original kernel types here. Fixes: 67069fc ("syscalls/fanotify22: Validate the generic error info") Reviewed-by: Cyril Hrubis <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
1 parent 56e9c4b commit 982a13d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/lapi/fanotify.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "config.h"
1111
#include <sys/fanotify.h>
12+
#include <linux/types.h>
1213

1314
#ifndef FAN_REPORT_TID
1415
#define FAN_REPORT_TID 0x00000100

0 commit comments

Comments
 (0)