linux-user: correct how SOL_SOCKET is converted from target to host and back
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 13 Sep 2013 17:27:29 +0000 (19:27 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 24 Sep 2013 07:47:07 +0000 (10:47 +0300)
commitdbf4f7965af974593da596ec12ac877d248efed6
treee1eb710c1d2bf05bd3fe6be3e9eb7d11697e722f
parent03cfd8faa7ffb7201e2949b99c2f35b1fef7078b
linux-user: correct how SOL_SOCKET is converted from target to host and back

Previous implementation does not take into account that SOL_SOCKET constant
can be arch specific. This change fixes some issues with sendmsg/recvmsg.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c