summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-09-12 11:03:01 +0900
committerChanho Park <chanho61.park@samsung.com>2014-10-20 03:59:40 -0700
commit95ace975c0ffa56ece77153cc789297dd1b087d5 (patch)
tree6f00f02fb106b65f40e5443ee8788f42786ab600 /tools
parentad79429bb279d639bf02e4ba9a662e08fcf5000f (diff)
downloadlinux-3.10-95ace975c0ffa56ece77153cc789297dd1b087d5.tar.gz
linux-3.10-95ace975c0ffa56ece77153cc789297dd1b087d5.tar.bz2
linux-3.10-95ace975c0ffa56ece77153cc789297dd1b087d5.zip
perf tools: define _DEFAULT_SOURCE for glibc_2.20submit/tizen_common/20141020.111144accepted/tizen/common/20141020.124336
_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.h2
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>