diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch b/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch new file mode 100644 index 0000000000..5c6bf919f8 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 4f1905ff09c730091674818bd1b48ee221347101 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 8 Jan 2016 08:30:29 +0000 | ||
4 | Subject: [PATCH 32/32] regen.sh: Include asm/unistd.h explicitly | ||
5 | |||
6 | on musl this is not included indirectly and it results in errors like | ||
7 | testcases/kernel/include/linux_syscall_numbers.h:1035:25: error: | ||
8 | '__NR_SYSCALL_BASE' undeclared (first use in this function) | ||
9 | | # define __NR_readdir (__NR_SYSCALL_BASE+ 89) | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | testcases/kernel/include/regen.sh | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/testcases/kernel/include/regen.sh b/testcases/kernel/include/regen.sh | ||
17 | index f93f49b..ee790af 100755 | ||
18 | --- a/testcases/kernel/include/regen.sh | ||
19 | +++ b/testcases/kernel/include/regen.sh | ||
20 | @@ -32,6 +32,7 @@ cat << EOF > "${output_pid}" | ||
21 | |||
22 | #include <errno.h> | ||
23 | #include <sys/syscall.h> | ||
24 | +#include <asm/unistd.h> | ||
25 | #include "cleanup.c" | ||
26 | |||
27 | #define ltp_syscall(NR, ...) ({ \\ | ||
28 | -- | ||
29 | 2.7.0 | ||
30 | |||