Commit aec1ca41 authored by Paul Burton's avatar Paul Burton Committed by Riku Voipio
Browse files

linux-user: support SO_ACCEPTCONN getsockopt option



Translate the SO_ACCEPTCONN option to the host value & execute the
syscall as expected.

Signed-off-by: default avatarPaul Burton <paul@archlinuxmips.org>
Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
parent 8289d112
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1652,6 +1652,9 @@ static abi_long do_getsockopt(int sockfd, int level, int optname,
        case TARGET_SO_RCVLOWAT:
            optname = SO_RCVLOWAT;
            goto int_case;
        case TARGET_SO_ACCEPTCONN:
            optname = SO_ACCEPTCONN;
            goto int_case;
        default:
            goto int_case;
        }