perf trace: Add conditional define for AT_FDCWD
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Jul 2016 17:43:27 +0000 (14:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:19:53 +0000 (15:19 -0300)
commit48e1f91ad2cadcb5689a2a3b6ed141d45009b45e
tree90f1cf4f01d30b3152727e68a9a88a6d074e4402
parent1fbe7df819d9958f139b87014a2f0d5b34da76d5
perf trace: Add conditional define for AT_FDCWD

This one was only defined if _GNU_SOURCE was set in older glibc
versions, check that and provide the define in such cases.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ilsgsysr6s3mru7rf2befnu5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c