summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0032-regen.sh-Include-asm-unistd.h-explicitly.patch
diff options
context:
space:
mode:
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.patch30
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 @@
1From 4f1905ff09c730091674818bd1b48ee221347101 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Jan 2016 08:30:29 +0000
4Subject: [PATCH 32/32] regen.sh: Include asm/unistd.h explicitly
5
6on musl this is not included indirectly and it results in errors like
7testcases/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
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 testcases/kernel/include/regen.sh | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/testcases/kernel/include/regen.sh b/testcases/kernel/include/regen.sh
17index 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--
292.7.0
30