aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-14 11:02:04 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-14 11:02:04 -0400
commit09dd39d2d2682729174e40161df67f45c151f307 (patch)
tree3a82e540780dfe9c2f9032aac2426fd975baf5f6
parentca575ad2093d7ca94238146c3c9267c61d2523bc (diff)
perf tools: Do not provide dup sched_getcpu() prototype on Android
The Bionic libc has this definition, so don't duplicate it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Chris Phlipot <cphlipot0@gmail.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-rmd19832zkt07e4crdzyen9z@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 6178cab82374..843cbba8f9d3 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -360,7 +360,7 @@ void print_binary(unsigned char *data, size_t len,
360 size_t bytes_per_line, print_binary_t printer, 360 size_t bytes_per_line, print_binary_t printer,
361 void *extra); 361 void *extra);
362 362
363#ifndef __GLIBC__ 363#if !defined(__GLIBC__) && !defined(__ANDROID__)
364extern int sched_getcpu(void); 364extern int sched_getcpu(void);
365#endif 365#endif
366 366