Skip to content

Commit 8fc70b3

Browse files
krisman-at-collaborajankara
authored andcommitted
samples: Make fs-monitor depend on libc and headers
Prevent build errors when headers or libc are not available, such as on kernel build bots, like the below: samples/fanotify/fs-monitor.c:7:10: fatal error: errno.h: No such file or directory 7 | #include <errno.h> | ^~~~~~~~~ Link: https://lore.kernel.org/r/[email protected] Suggested-by: Guenter Roeck <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Gabriel Krisman Bertazi <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent c0baf9a commit 8fc70b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ config SAMPLE_CONNECTOR
122122

123123
config SAMPLE_FANOTIFY_ERROR
124124
bool "Build fanotify error monitoring sample"
125-
depends on FANOTIFY
125+
depends on FANOTIFY && CC_CAN_LINK && HEADERS_INSTALL
126126
help
127127
When enabled, this builds an example code that uses the
128128
FAN_FS_ERROR fanotify mechanism to monitor filesystem

0 commit comments

Comments
 (0)