From: Arnaldo Carvalho de Melo Date: Tue, 18 May 2010 03:23:14 +0000 (-0300) Subject: perf tui: Fix build problem with slang <= 2.0.6 X-Git-Tag: MMI-PSA29.97-13-9~23403^2~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32ec6acfdcc066313261d0fbe6a966cb1804a7cd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf tui: Fix build problem with slang <= 2.0.6 slang versions <= 2.0.6 have a "#if HAVE_LONG_LONG" that breaks the build if it isn't defined. Use the equivalent one that glibc has on features.h. Reported-by: Steven Rostedt Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index ccb7c5bb269e..9338d060ee49 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c @@ -1,7 +1,15 @@ #define _GNU_SOURCE #include #undef _GNU_SOURCE - +/* + * slang versions <= 2.0.6 have a "#if HAVE_LONG_LONG" that breaks + * the build if it isn't defined. Use the equivalent one that glibc + * has on features.h. + */ +#include +#ifndef HAVE_LONG_LONG +#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG +#endif #include #include #include