Correct errno return for getsockopt(), by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3838 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3800af9e3c
commit
c02f499e10
@ -996,14 +996,15 @@ static abi_long do_getsockopt(int sockfd, int level, int optname,
|
||||
}
|
||||
break;
|
||||
default:
|
||||
goto unimplemented;
|
||||
ret = -TARGET_ENOPROTOOPT;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
unimplemented:
|
||||
gemu_log("getsockopt level=%d optname=%d not yet supported\n",
|
||||
level, optname);
|
||||
ret = -TARGET_ENOSYS;
|
||||
ret = -TARGET_EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user