diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-12 22:33:07 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-12 22:33:07 +0000 |
commit | 379ff53dc964ee1dc9442dac230c87a595e06a12 (patch) | |
tree | e95b6fe5abe71414f507d85ebcfea63b3d2468b3 /slirp/misc.c | |
parent | ce93da6ffee7f27044c5b49b096ebdec27075110 (diff) | |
download | qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.zip qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.tar.gz qemu-379ff53dc964ee1dc9442dac230c87a595e06a12.tar.bz2 |
win32 compile
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1016 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index 7f6448d..64bd9ee 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -326,7 +326,7 @@ fork_exec(so, ex, do_pty) bind(s, (struct sockaddr *)&addr, addrlen) < 0 || listen(s, 1) < 0) { lprint("Error: inet socket: %s\n", strerror(errno)); - close(s); + closesocket(s); return 0; } @@ -421,7 +421,7 @@ fork_exec(so, ex, do_pty) * of connect() fail in the child process */ so->s = accept(s, (struct sockaddr *)&addr, &addrlen); - close(s); + closesocket(s); opt = 1; setsockopt(so->s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)); opt = 1; @@ -804,7 +804,7 @@ fd_nonblock(fd) #ifdef FIONBIO int opt = 1; - ioctl(fd, FIONBIO, &opt); + ioctlsocket(fd, FIONBIO, &opt); #else int opt; @@ -821,7 +821,7 @@ fd_block(fd) #ifdef FIONBIO int opt = 0; - ioctl(fd, FIONBIO, &opt); + ioctlsocket(fd, FIONBIO, &opt); #else int opt; |