perf/compat: Sharpen the libaudit dependencies test

From: Ingo Molnar
Date: Thu Sep 12 2013 - 09:27:16 EST



There are older libaudit versions that don't have an audit_errno_to_name()
method, resulting in a builtin-trace.c build error:

builtin-trace.c: In function âtrace__sys_exitâ:
builtin-trace.c:794: warning: implicit declaration of function âaudit_errno_to_nameâ

Expand the libaudit test to detect this.

Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>

diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak
index 708fb8e..5608add 100644
--- a/tools/perf/config/feature-tests.mak
+++ b/tools/perf/config/feature-tests.mak
@@ -210,6 +210,7 @@ define SOURCE_LIBAUDIT

int main(void)
{
+ printf("error message: %s\n", audit_errno_to_name(0));
return audit_open();
}
endef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/