projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8fa496
)
perf tools: define _DEFAULT_SOURCE for glibc_2.20
author
Chanho Park
<
[email protected]
>
Fri, 12 Sep 2014 02:10:17 +0000
(11:10 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 17 Sep 2014 20:08:10 +0000
(17:08 -0300)
_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
Signed-off-by: Chanho Park <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/util.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/util.h
b/tools/perf/util/util.h
index 6ad2b5e3d5bb2f686c0178c0463505772c02d56d..80bfdaa0e2a45e5c7316625ad85e0b61ff9c191c 100644
(file)
--- 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>