diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-18 00:23:14 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-18 00:25:36 -0300 |
commit | 32ec6acfdcc066313261d0fbe6a966cb1804a7cd (patch) | |
tree | 0a9325139d71ea56b5a9c59a9bd335351dddcc4e | |
parent | 7752f1b096e13991f20b59fd11ba73da3809d93c (diff) | |
download | kernel_samsung_tuna-32ec6acfdcc066313261d0fbe6a966cb1804a7cd.zip kernel_samsung_tuna-32ec6acfdcc066313261d0fbe6a966cb1804a7cd.tar.gz kernel_samsung_tuna-32ec6acfdcc066313261d0fbe6a966cb1804a7cd.tar.bz2 |
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 <rostedt@goodmis.org>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/newt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index ccb7c5b..9338d06 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c @@ -1,7 +1,15 @@ #define _GNU_SOURCE #include <stdio.h> #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 <features.h> +#ifndef HAVE_LONG_LONG +#define HAVE_LONG_LONG __GLIBC_HAVE_LONG_LONG +#endif #include <slang.h> #include <stdlib.h> #include <newt.h> |