From b52994ed5da1dc8d3f2ccad02ad67713af9a08a8 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 10 May 2013 17:31:01 -0500 Subject: [PATCH] FS-5325 windows compile (cherry picked from commit d466316ace5e797c8130ca672d3ba17c79669f16) --- libs/iksemel/src/stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/iksemel/src/stream.c b/libs/iksemel/src/stream.c index 127bcd3e2d..559335b16e 100644 --- a/libs/iksemel/src/stream.c +++ b/libs/iksemel/src/stream.c @@ -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; }