summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-09-12 11:03:01 +0900
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:23:26 +0100
commitea2e0e05e43104dd9ae6d3cac82525b903b6d297 (patch)
treefcbf3131ed24776bd7facfca14dcb991c3dc9896
parent2948accb198e6b7263a8d1dab9458ee152e15c81 (diff)
downloadkernel-common-ea2e0e05e43104dd9ae6d3cac82525b903b6d297.tar.gz
kernel-common-ea2e0e05e43104dd9ae6d3cac82525b903b6d297.tar.bz2
kernel-common-ea2e0e05e43104dd9ae6d3cac82525b903b6d297.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>
-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 6995d66f225c..3830f6d62473 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>