[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140915190655.GH11199@kernel.org>
Date: Mon, 15 Sep 2014 16:06:55 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Chanho Park <chanho61.park@...sung.com>
Cc: a.p.zijlstra@...llo.nl, paulus@...ba.org, mingo@...hat.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf tools: define _DEFAULT_SOURCE for glibc_2.20
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@...sung.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists