aboutsummaryrefslogtreecommitdiff
path: root/slirp/udp.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-07 23:27:35 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-07 23:27:35 +0000
commit02d2c54cd3e1a65ce4eaf1555b7f73d0a50eaec4 (patch)
tree52c827b911f8ce0cc99998198dc0fef5abee3c97 /slirp/udp.c
parent890fa6bebbb540b9761aafc3fe37b87e26578346 (diff)
downloadqemu-02d2c54cd3e1a65ce4eaf1555b7f73d0a50eaec4.zip
qemu-02d2c54cd3e1a65ce4eaf1555b7f73d0a50eaec4.tar.gz
qemu-02d2c54cd3e1a65ce4eaf1555b7f73d0a50eaec4.tar.bz2
windows fixes (Gregory Alexander)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1102 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/udp.c')
-rw-r--r--slirp/udp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/slirp/udp.c b/slirp/udp.c
index 2dd51a3..aefa0b7 100644
--- a/slirp/udp.c
+++ b/slirp/udp.c
@@ -339,7 +339,11 @@ udp_attach(so)
int lasterrno=errno;
closesocket(so->s);
so->s=-1;
+#ifdef _WIN32
+ WSASetLastError(lasterrno);
+#else
errno=lasterrno;
+#endif
} else {
/* success, insert in queue */
so->so_expire = curtime + SO_EXPIRE;