From: Chanho Park Date: Fri, 12 Sep 2014 02:10:17 +0000 (+0900) Subject: perf tools: define _DEFAULT_SOURCE for glibc_2.20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=512fe365373b9c95a70b4b6357503ee74d27214f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf tools: define _DEFAULT_SOURCE for glibc_2.20 _BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc 2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should also be defined. [1]: https://sourceware.org/glibc/wiki/Release/2.20 Signed-off-by: Chanho Park Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1410487817-13403-1-git-send-email-chanho61.park@samsung.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 6ad2b5e3d5bb..80bfdaa0e2a4 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -39,6 +39,8 @@ #define _ALL_SOURCE 1 #define _BSD_SOURCE 1 +/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */ +#define _DEFAULT_SOURCE 1 #define HAS_BOOL #include