perf tools: Move conditional O_CLOEXEC to util.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jan 2018 20:11:30 +0000 (17:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Jan 2018 12:48:20 +0000 (09:48 -0300)
commit5c61d70e55ab1cb917752f4a0d5f4683b4869e32
tree0a8bc3505a549208a0fef1e44676d99c68570e45
parent872523233d640c21ce13ea51269c5c031ebb2f78
perf tools: Move conditional O_CLOEXEC to util.h

To be more generally available and get the build on centos:5 to
work after we use O_CLOEXEC in the next patch, in the util/dso.c file.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.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>
Cc: Wang YanQing <udknight@gmail.com>
Link: https://lkml.kernel.org/n/tip-vsjbiydh15pfqomxw1kx64ex@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data.c
tools/perf/util/util.h