Use send() instead of write() if MINGW32.

This commit is contained in:
Michael Jumper 2011-02-10 00:24:17 -08:00
parent 60897fc7f8
commit 0cb6ad1502

View File

@ -68,8 +68,13 @@ ssize_t __guac_write(GUACIO* io, const char* buf, int count) {
int retval;
/* Write and time how long the write takes (microseconds) */
#ifdef __MINGW32__
/* MINGW32 WINSOCK only works with send() */
retval = send(io->fd, buf, count, 0);
#else
/* Use write() for all other platforms */
retval = write(io->fd, buf, count);
#endif
return retval;
}