From: Arnaldo Carvalho de Melo Date: Thu, 14 Jul 2016 15:02:04 +0000 (-0300) Subject: perf tools: Do not provide dup sched_getcpu() prototype on Android X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09dd39d2d2682729174e40161df67f45c151f307;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Chris Phlipot Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-rmd19832zkt07e4crdzyen9z@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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, size_t bytes_per_line, print_binary_t printer, void *extra); -#ifndef __GLIBC__ +#if !defined(__GLIBC__) && !defined(__ANDROID__) extern int sched_getcpu(void); #endif