From: Arnaldo Carvalho de Melo Date: Mon, 18 May 2015 15:24:41 +0000 (-0300) Subject: perf bench numa: Share sched_getcpu() __weak def with cloexec.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d8e405acd787f4b975f73e0f8d9804b272c00f0;p=linux-beck.git perf bench numa: Share sched_getcpu() __weak def with cloexec.c We really should move the sched_getcpu() to some more suitable place, but this one-liner fixes this build problem on ancient distros like RHEL5. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Cc: Vinson Lee Link: http://lkml.kernel.org/n/tip-5yqg4p11f9uii6yremz3r35v@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index e2415f40343a..870b7e665a20 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c @@ -8,6 +8,7 @@ #include "../builtin.h" #include "../util/util.h" #include "../util/parse-options.h" +#include "../util/cloexec.h" #include "bench.h"