aboutsummaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c8
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;