tools include uapi x86: Grab a copy of unistd.h
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 18 Jul 2017 20:09:21 +0000 (17:09 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 19 Jul 2017 02:14:07 +0000 (23:14 -0300)
commit047726d1f9ae6b1f3a2144577ffc3a1a92ffedf4
tree872e69c4c6c4db2949a9b7876b106e0f7464a69a
parent80e63ffb09a1b7ac645e9dd1c16b7b08956a7f5b
tools include uapi x86: Grab a copy of unistd.h

In older distros we were not including our copies of unistd_{32,64}.h,
as we were relying on the system's asm/unistd.h, and a log time ago
the files to be included were asm-{x86_64,i386}/unistd.h.

Fix it by also carrying a copy of asm/unistd.h, that will be the same
as in modern distros and will allow us to provide missing __NR_setns,
for instance, in older distros.

Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/arch/x86/include/uapi/asm/unistd.h [new file with mode: 0644]
tools/perf/check-headers.sh