]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5325 windows compile
authorJeff Lenk <jeff@jefflenk.com>
Fri, 10 May 2013 22:31:01 +0000 (17:31 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 10 May 2013 22:34:06 +0000 (17:34 -0500)
(cherry picked from commit d466316ace5e797c8130ca672d3ba17c79669f16)

libs/iksemel/src/stream.c

index 127bcd3e2dbb99ad426a346ce02da0487adb5e0f..559335b16e6aece6166d72e9f00641bf438a375e 100644 (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;
     }