diff options
Diffstat (limited to 'meta/packages/qemu/qemu-git/31_syscalls.patch')
-rw-r--r-- | meta/packages/qemu/qemu-git/31_syscalls.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-git/31_syscalls.patch b/meta/packages/qemu/qemu-git/31_syscalls.patch new file mode 100644 index 0000000000..df2aa84bb1 --- /dev/null +++ b/meta/packages/qemu/qemu-git/31_syscalls.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | #DPATCHLEVEL=0 | ||
2 | --- | ||
3 | # linux-user/syscall.c | 11 ++++++++--- | ||
4 | # 1 file changed, 8 insertions(+), 3 deletions(-) | ||
5 | # | ||
6 | Index: linux-user/syscall.c | ||
7 | =================================================================== | ||
8 | --- linux-user/syscall.c.orig 2009-01-05 12:32:37.000000000 +0000 | ||
9 | +++ linux-user/syscall.c 2009-01-05 12:32:37.000000000 +0000 | ||
10 | @@ -298,6 +298,7 @@ | ||
11 | extern int setfsuid(int); | ||
12 | extern int setfsgid(int); | ||
13 | extern int setgroups(int, gid_t *); | ||
14 | +extern int uselib(const char*); | ||
15 | |||
16 | #define ERRNO_TABLE_SIZE 1200 | ||
17 | |||
18 | @@ -4397,7 +4398,8 @@ | ||
19 | #endif | ||
20 | #ifdef TARGET_NR_uselib | ||
21 | case TARGET_NR_uselib: | ||
22 | - goto unimplemented; | ||
23 | + ret = get_errno(uselib(path((const char*)arg1))); | ||
24 | + break; | ||
25 | #endif | ||
26 | #ifdef TARGET_NR_swapon | ||
27 | case TARGET_NR_swapon: | ||