diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8196401ca1e41ce069c6462b23afa349f25f5b2a..5020f3fee437befa1d62ff017b8b9e9f93d19ddc 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -3422,7 +3423,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, case TARGET_NR_nfsservctl: goto unimplemented; case TARGET_NR_prctl: - goto unimplemented; + ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5)); + break; #ifdef TARGET_NR_pread case TARGET_NR_pread: page_unprotect_range(arg2, arg3);