Index: linux-user/syscall.c =================================================================== RCS file: /cvsroot/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.47 diff -u -d -w -B -b -d -p -r1.47 syscall.c --- linux-user/syscall.c 12 Apr 2004 20:39:29 -0000 1.47 +++ linux-user/syscall.c 25 Apr 2004 18:31:36 -0000 @@ -2403,7 +2403,12 @@ long do_syscall(void *cpu_env, int num, case TARGET_NR__llseek: { int64_t res; +#if defined (__x86_64__) + /* XXX: may be needed by other 64 bits targets ? */ + ret = get_errno(_llseek(arg1, arg3, arg2, &res, arg5)); +#else ret = get_errno(_llseek(arg1, arg2, arg3, &res, arg5)); +#endif *(int64_t *)arg4 = tswap64(res); } break;