summaryrefslogtreecommitdiffstats
path: root/tools/perf/config/feature-tests.mak
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-03-19 20:14:46 +0100
committerIngo Molnar <mingo@kernel.org>2012-03-19 20:14:46 +0100
commit9521d830b6341d1887dcfc2aebde23fbfa5f1473 (patch)
treedb6b03aaca5ca4a254912ae1a7f3e5e89ee182e4 /tools/perf/config/feature-tests.mak
parentbea95c152dee1791dd02cbc708afbb115bb00f9a (diff)
parentc31a94570552dcaa517c4f7a043ffd28835016be (diff)
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Fixes for the last batch from Namhyung and the initial GTK report browser from Pekka. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/config/feature-tests.mak')
-rw-r--r--tools/perf/config/feature-tests.mak15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/config/feature-tests.mak b/tools/perf/config/feature-tests.mak
index 6170fd2531b..d9084e03ce5 100644
--- a/tools/perf/config/feature-tests.mak
+++ b/tools/perf/config/feature-tests.mak
@@ -65,6 +65,21 @@ int main(void)
endef
endif
+ifndef NO_GTK2
+define SOURCE_GTK2
+#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
+#include <gtk/gtk.h>
+#pragma GCC diagnostic error \"-Wstrict-prototypes\"
+
+int main(int argc, char *argv[])
+{
+ gtk_init(&argc, &argv);
+
+ return 0;
+}
+endef
+endif
+
ifndef NO_LIBPERL
define SOURCE_PERL_EMBED
#include <EXTERN.h>