perf tests openat-syscall-tp-fields: Add some conditional defines
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:54 +0000 (15:19 -0300)
commitab6526b2ca2c2c3b383a24b2a0c68c5a8f71b820
tree074a5a2f9abf4298ed3401fe1948009854f70720
parent48e1f91ad2cadcb5689a2a3b6ed141d45009b45e
perf tests openat-syscall-tp-fields: Add some conditional defines

These were only defined if _GNU_SOURCE was set in older glibc versions,
check that and provide the defines 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-b8esouhpg4tk6vi4n3d7ipch@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/openat-syscall-tp-fields.c