* [GIT PULL 0/1] perf tui build fix for slang <= 2.0.6
@ 2010-05-18 3:30 Arnaldo Carvalho de Melo
2010-05-18 3:30 ` [PATCH 1/1] perf tui: Fix build problem with " Arnaldo Carvalho de Melo
2010-05-18 6:21 ` [GIT PULL 0/1] perf tui build fix for " Ingo Molnar
0 siblings, 2 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-05-18 3:30 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Arnaldo Carvalho de Melo, Steven Rostedt,
Frédéric Weisbecker, Mike Galbraith, Paul Mackerras,
Peter Zijlstra, Tom Zanussi
Arnaldo Carvalho de Melo (1):
perf tui: Fix build problem with slang <= 2.0.6
tools/perf/util/newt.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] perf tui: Fix build problem with slang <= 2.0.6
2010-05-18 3:30 [GIT PULL 0/1] perf tui build fix for slang <= 2.0.6 Arnaldo Carvalho de Melo
@ 2010-05-18 3:30 ` Arnaldo Carvalho de Melo
2010-05-18 6:21 ` [GIT PULL 0/1] perf tui build fix for " Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-05-18 3:30 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Arnaldo Carvalho de Melo,
Frédéric Weisbecker, Mike Galbraith, Paul Mackerras,
Peter Zijlstra, Tom Zanussi
From: Arnaldo Carvalho de Melo <acme@redhat.com>
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: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
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>
--
1.6.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [GIT PULL 0/1] perf tui build fix for slang <= 2.0.6
2010-05-18 3:30 [GIT PULL 0/1] perf tui build fix for slang <= 2.0.6 Arnaldo Carvalho de Melo
2010-05-18 3:30 ` [PATCH 1/1] perf tui: Fix build problem with " Arnaldo Carvalho de Melo
@ 2010-05-18 6:21 ` Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2010-05-18 6:21 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: linux-kernel, Steven Rostedt, Frédéric Weisbecker,
Mike Galbraith, Paul Mackerras, Peter Zijlstra, Tom Zanussi
* Arnaldo Carvalho de Melo <acme@infradead.org> wrote:
> Arnaldo Carvalho de Melo (1):
> perf tui: Fix build problem with slang <= 2.0.6
>
> tools/perf/util/newt.c | 10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
Pulled, thanks Arnaldo!
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-18 6:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 3:30 [GIT PULL 0/1] perf tui build fix for slang <= 2.0.6 Arnaldo Carvalho de Melo
2010-05-18 3:30 ` [PATCH 1/1] perf tui: Fix build problem with " Arnaldo Carvalho de Melo
2010-05-18 6:21 ` [GIT PULL 0/1] perf tui build fix for " Ingo Molnar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.