FS-5325 windows compile

This commit is contained in:
Jeff Lenk 2013-05-10 17:31:01 -05:00
parent 15f219ea25
commit d466316ace
1 changed files with 3 additions and 2 deletions

View File

@ -272,13 +272,14 @@ static int wait_for_data(struct stream_data *data, int ret, int timeout)
int iks_set_blocking(void *fd, int blocking)
{
#ifdef WIN32
unsigned long mode = !blocking;
#endif
if (!fd) {
return -1;
}
#ifdef WIN32
ULONG mode = !blocking;
if (ioctlsocket((SOCKET)(intptr_t) fd, FIONBIO, &mode)) {
return -1;
}