perf trace: Fix the build on older distros
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 May 2015 20:39:03 +0000 (17:39 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 May 2015 22:27:46 +0000 (19:27 -0300)
commitc188e7acd24f132279a91f4fe1fb3b078e0329dd
tree55e44fd158c9985e193f549c9e1c63fe6df6387b
parentb390d850607346162467bf1805a365e07de7c079
perf trace: Fix the build on older distros

Such as RHEL5, where CLOEXEC, NONBLOCK flags are not present, use a
ifdef+define approach instead to make it build on all distros.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Vinson Lee <vlee@twitter.com>
Link: http://lkml.kernel.org/n/tip-pioazikk9d9oz5qdeor3eldu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c