From: ths Date: Tue, 18 Dec 2007 02:41:04 +0000 (+0000) Subject: Correct errno return for setsockopt(), by Thayne Harbaugh. X-Git-Tag: xen-3.3.0-rc1~520 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6fa13c170c6f85bf76b23d689df2cc576f12bffd;p=qemu-xen-4.0-testing.git Correct errno return for setsockopt(), by Thayne Harbaugh. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3839 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 5159685e..d099e97d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -906,7 +906,7 @@ static abi_long do_setsockopt(int sockfd, int level, int optname, default: unimplemented: gemu_log("Unsupported setsockopt level=%d optname=%d \n", level, optname); - ret = -TARGET_ENOSYS; + ret = -TARGET_ENOPROTOOPT; } return ret; }