From: Chanho Park Date: Fri, 12 Sep 2014 02:03:01 +0000 (+0900) Subject: perf tools: define _DEFAULT_SOURCE for glibc_2.20 X-Git-Tag: submit/tizen_ivi/20150108.095140~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git;a=commitdiff_plain;h=8d150ceab8bb823758f3f35e1d08c6ac55f07dde 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 Change-Id: I01a2849bb8642cbf5c875caf227ab05e6fa0fa41 Signed-off-by: Chanho Park (cherry picked from commit c92e952df3af842eaed9ed9a59392167bcbf1afc) Signed-off-by: Damian Hobson-Garcia --- diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 6995d66..3830f6d 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