diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-01-01 21:49:16 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-01-01 21:49:16 +0000 |
commit | 919c87c0767a6f43d7865d23a1458879e660339a (patch) | |
tree | eab2bb9cea60c202d68adef12fbe79011a8f4c93 /packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch | |
parent | 7891c2d7f2a49f364724841282fee1c98a2f0c47 (diff) |
qemu: Add 0.9.0+cvs20071121 from Poky. DEF_PREF = -1.
Diffstat (limited to 'packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch')
-rw-r--r-- | packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch b/packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch new file mode 100644 index 0000000000..54ee3e0948 --- /dev/null +++ b/packages/qemu/qemu-0.9.0+cvs20071121/39_syscall_fadvise64.patch @@ -0,0 +1,21 @@ +--- + linux-user/syscall.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +Index: linux-user/syscall.c +=================================================================== +--- linux-user/syscall.c.orig 2007-12-03 19:33:47.000000000 +0000 ++++ linux-user/syscall.c 2007-12-03 19:33:48.000000000 +0000 +@@ -5317,6 +5317,12 @@ abi_long do_syscall(void *cpu_env, int n + ret = get_errno(mincore((void*)arg1, (size_t)arg2, (unsigned char*)arg3)); + break; + #endif ++#ifdef TARGET_NR_fadvise64_64 ++ case TARGET_NR_fadvise64_64: ++ /* Just return success */ ++ ret = get_errno(0); ++ break; ++#endif + #ifdef TARGET_NR_madvise + case TARGET_NR_madvise: + /* A straight passthrough may not be safe because qemu sometimes |