diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-09-12 11:03:01 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:01:02 +0900 |
commit | 903e782bbaa37ed58a17bc0fb2a785bc592999e8 (patch) | |
tree | 691ade2849b5e2d565e58ea5f4857dcc5ed74b66 /tools | |
parent | 3f3fe57eb7cce99279a91e666fdb2da7815ba963 (diff) | |
download | linux-3.10-903e782bbaa37ed58a17bc0fb2a785bc592999e8.tar.gz linux-3.10-903e782bbaa37ed58a17bc0fb2a785bc592999e8.tar.bz2 linux-3.10-903e782bbaa37ed58a17bc0fb2a785bc592999e8.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: I89b03ce322a85f01375f73185fbcfb07403c8ee9
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Diffstat (limited to 'tools')
-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 7a484c97e50..d36e917c07f 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> |