public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20
@ 2014-09-12  2:10 Chanho Park
  2014-09-15 19:06 ` Arnaldo Carvalho de Melo
  2014-09-19  5:22 ` [tip:perf/core] " tip-bot for Chanho Park
  0 siblings, 2 replies; 3+ messages in thread
From: Chanho Park @ 2014-09-12  2:10 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme; +Cc: linux-kernel, Chanho Park

_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 <chanho61.park@samsung.com>
---
 tools/perf/util/util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 6686436..333d9d1 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>
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20
  2014-09-12  2:10 [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20 Chanho Park
@ 2014-09-15 19:06 ` Arnaldo Carvalho de Melo
  2014-09-19  5:22 ` [tip:perf/core] " tip-bot for Chanho Park
  1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2014-09-15 19:06 UTC (permalink / raw)
  To: Chanho Park; +Cc: a.p.zijlstra, paulus, mingo, linux-kernel

Em Fri, Sep 12, 2014 at 11:10:17AM +0900, Chanho Park escreveu:
> _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

Thanks,

 Applied.
 
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>
> ---
>  tools/perf/util/util.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
> index 6686436..333d9d1 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>
> -- 
> 1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:perf/core] perf tools: define _DEFAULT_SOURCE for glibc_2.20
  2014-09-12  2:10 [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20 Chanho Park
  2014-09-15 19:06 ` Arnaldo Carvalho de Melo
@ 2014-09-19  5:22 ` tip-bot for Chanho Park
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Chanho Park @ 2014-09-19  5:22 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: acme, linux-kernel, paulus, hpa, mingo, a.p.zijlstra,
	chanho61.park, tglx

Commit-ID:  512fe365373b9c95a70b4b6357503ee74d27214f
Gitweb:     http://git.kernel.org/tip/512fe365373b9c95a70b4b6357503ee74d27214f
Author:     Chanho Park <chanho61.park@samsung.com>
AuthorDate: Fri, 12 Sep 2014 11:10:17 +0900
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 17 Sep 2014 17:08:10 -0300

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

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1410487817-13403-1-git-send-email-chanho61.park@samsung.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index 6ad2b5e..80bfdaa 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>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-19  5:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12  2:10 [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20 Chanho Park
2014-09-15 19:06 ` Arnaldo Carvalho de Melo
2014-09-19  5:22 ` [tip:perf/core] " tip-bot for Chanho Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox