samples: Define dummy __NR_keyctl if undefined
PATCH 1/1 samples: Define dummy __NR_keyctl if undefined
mips:allmodconfig fails to build.
samples/watch_queue/watch_test.c: In function ‘keyctl_watch_key’:samples/watch_queue/watch_test.c:34:17: error: ‘__NR_keyctl’ undeclared
Declare dummy __NR_keyctl if it is undefined to fix the problem.
Cc David Howells <[email protected]>
Fixes 631ec151fd96 ("Add sample notification program")
Signed-off-by Guenter Roeck <[email protected]>
--- samples/watch_queue/watch_test.c | 3 +++ 1 file changed, 3 insertions(+)
samples/watch_queue/watch_test.c +3 -0
@@ -26,6 +26,9 @@#ifndef __NR_watch_devices#define __NR_watch_devices -1#endif +#ifndef __NR_keyctl +#define __NR_keyctl -1 +#endif #define BUF_SIZE 256
Signature · 1 line
2.17.1