diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-09-12 11:03:01 +0900 |
---|---|---|
committer | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2014-12-11 16:53:33 +0900 |
commit | 8d150ceab8bb823758f3f35e1d08c6ac55f07dde (patch) | |
tree | 2c241eca1995f56460f103da5fc982d82e934492 | |
parent | 246e0a911ae3217f8fead1fd6e0a7db4f0968adf (diff) | |
download | renesas_kernel-8d150ceab8bb823758f3f35e1d08c6ac55f07dde.tar.gz renesas_kernel-8d150ceab8bb823758f3f35e1d08c6ac55f07dde.tar.bz2 renesas_kernel-8d150ceab8bb823758f3f35e1d08c6ac55f07dde.zip |
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 <chanho61.park@samsung.com>
(cherry picked from commit c92e952df3af842eaed9ed9a59392167bcbf1afc)
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
-rw-r--r-- | tools/perf/util/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 6995d66f225..3830f6d6247 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 <unistd.h> |