diff options
Diffstat (limited to 'tools/perf/config/feature-checks/test-libaudit.c')
-rw-r--r-- | tools/perf/config/feature-checks/test-libaudit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/config/feature-checks/test-libaudit.c b/tools/perf/config/feature-checks/test-libaudit.c new file mode 100644 index 000000000000..afc019f08641 --- /dev/null +++ b/tools/perf/config/feature-checks/test-libaudit.c | |||
@@ -0,0 +1,10 @@ | |||
1 | #include <libaudit.h> | ||
2 | |||
3 | extern int printf(const char *format, ...); | ||
4 | |||
5 | int main(void) | ||
6 | { | ||
7 | printf("error message: %s\n", audit_errno_to_name(0)); | ||
8 | |||
9 | return audit_open(); | ||
10 | } | ||