Re: [RFC PATCH v2 4/7] libperf: Introduce perf_{evsel, evlist}__open_opt with extensible struct opts

From: Jiri Olsa
Date: Wed Mar 30 2022 - 09:51:55 EST


On Fri, Mar 25, 2022 at 01:38:26PM +0900, Shunsuke Nakamura wrote:

SNIP

> diff --git a/tools/lib/perf/evsel.c b/tools/lib/perf/evsel.c
> index b17842581dea..db9b7274feb5 100644
> --- a/tools/lib/perf/evsel.c
> +++ b/tools/lib/perf/evsel.c
> @@ -1,4 +1,7 @@
> // SPDX-License-Identifier: GPL-2.0
> +#ifndef _GNU_SOURCE
> +#define _GNU_SOURCE
> +#endif

I think we can make this global set in Makefile, like we do in perf

jirka