From aae160382b60a22970b2e8919d444b94d9a142de Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Tue, 18 May 2010 00:23:14 -0300 Subject: [PATCH] --- yaml --- r: 199087 b: refs/heads/master c: 32ec6acfdcc066313261d0fbe6a966cb1804a7cd h: refs/heads/master i: 199085: aa97c290ffc23c82eb982cb0eb78a5b98f9bcf5b 199083: 84cf61cff9ed88ac2ffc7959781ec30711959c1a 199079: bd8699e342bf618385f99793fa4f894f20829dd1 199071: 0a0898b41bd993f75d21b34fb424649a70a630e7 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/newt.c | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ad6d853070c4..f51ee6dce22d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7752f1b096e13991f20b59fd11ba73da3809d93c +refs/heads/master: 32ec6acfdcc066313261d0fbe6a966cb1804a7cd diff --git a/trunk/tools/perf/util/newt.c b/trunk/tools/perf/util/newt.c index ccb7c5bb269e..9338d060ee49 100644 --- a/trunk/tools/perf/util/newt.c +++ b/trunk/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