diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-18 21:23:42 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-03-18 21:23:42 +0000 |
commit | b56ad1448df9cd4f220225a8c951cde64671f5aa (patch) | |
tree | 6317e394b6fd6ffa40390811446d567021887102 /emulators/qemu-devel/files/patch-slirp-socket.c | |
parent | Puyos are fancy smiling bubbles... But they can really be invading (diff) |
- Add Lonnie's usb host support patches and a bunch of other fixes mostly from
cvs, including a workaround for the -nographic crash.
PR: ports/94654
Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=157608
Diffstat (limited to 'emulators/qemu-devel/files/patch-slirp-socket.c')
-rw-r--r-- | emulators/qemu-devel/files/patch-slirp-socket.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-slirp-socket.c b/emulators/qemu-devel/files/patch-slirp-socket.c new file mode 100644 index 000000000000..91b030ae62c3 --- /dev/null +++ b/emulators/qemu-devel/files/patch-slirp-socket.c @@ -0,0 +1,18 @@ +# 1.6 +Index: qemu/slirp/socket.c +@@ -573,6 +573,7 @@ + addr.sin_port = port; + + if (((s = socket(AF_INET,SOCK_STREAM,0)) < 0) || ++ (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) || + (bind(s,(struct sockaddr *)&addr, sizeof(addr)) < 0) || + (listen(s,1) < 0)) { + int tmperrno = errno; /* Don't clobber the real reason we failed */ +@@ -587,7 +588,6 @@ + #endif + return NULL; + } +- setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)); + setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int)); + + getsockname(s,(struct sockaddr *)&addr,&addrlen); |