Index: linux-user/syscall.c =================================================================== RCS file: /sources/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.75 diff -u -r1.75 syscall.c --- linux-user/syscall.c 27 Jun 2006 21:08:10 -0000 1.75 +++ linux-user/syscall.c 13 Jul 2006 10:00:09 -0000 @@ -1054,6 +1141,13 @@ /* XXX: suppress this function and call directly the related socket functions */ +#if defined(TARGET_NR_accept) || defined(TARGET_NR_getpeername) || \ + defined(TARGET_NR_getsockname) || defined(TARGET_NR_listen) || \ + defined(TARGET_NR_recv) || defined(TARGET_NR_recvfrom) || \ + defined(TARGET_NR_recvmsg) || defined(TARGET_NR_send) || \ + defined(TARGET_NR_sendto) || defined(TARGET_NR_shutdown) || \ + defined(TARGET_NR_socketpair) + static long do_socketcallwrapper(int num, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6) { @@ -1068,6 +1162,7 @@ return do_socketcall(num, (target_ulong) args); } +#endif #define N_SHM_REGIONS 32