diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-07 23:27:35 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-07 23:27:35 +0000 |
commit | 02d2c54cd3e1a65ce4eaf1555b7f73d0a50eaec4 (patch) | |
tree | 52c827b911f8ce0cc99998198dc0fef5abee3c97 /slirp/if.c | |
parent | 890fa6bebbb540b9761aafc3fe37b87e26578346 (diff) | |
download | qemu-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/if.c')
-rw-r--r-- | slirp/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -79,14 +79,14 @@ writen(fd, bptr, n) int total; /* This should succeed most of the time */ - ret = write(fd, bptr, n); + ret = send(fd, bptr, n,0); if (ret == n || ret <= 0) return ret; /* Didn't write everything, go into the loop */ total = ret; while (n > total) { - ret = write(fd, bptr+total, n-total); + ret = send(fd, bptr+total, n-total,0); if (ret <= 0) return ret; total += ret; @@ -111,7 +111,7 @@ if_input(ttyp) DEBUG_CALL("if_input"); DEBUG_ARG("ttyp = %lx", (long)ttyp); - if_n = read(ttyp->fd, (char *)if_inbuff, INBUFF_SIZE); + if_n = recv(ttyp->fd, (char *)if_inbuff, INBUFF_SIZE,0); DEBUG_MISC((dfd, " read %d bytes\n", if_n)); |