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: v2.6.35-rc1~30^2~43 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=32ec6acfdcc066313261d0fbe6a966cb1804a7cd;p=~shefty%2Frdma-dev.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 ccb7c5bb269..9338d060ee4 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