#DPATCHLEVEL=0 Index: linux-user/syscall.c =================================================================== --- linux-user/syscall.c.orig 2006-11-05 07:07:41.000000000 +0200 +++ linux-user/syscall.c 2006-11-05 07:07:44.000000000 +0200 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -3486,7 +3487,8 @@ long do_syscall(void *cpu_env, int num, 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);