diff libnnchat.c @ 365:88ac689d11bc

Win32/MinGW specific fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:24:25 +0300
parents b465a17ffa47
children b9f0bdad6285
line wrap: on
line diff
--- a/libnnchat.c	Thu Jun 23 11:14:06 2011 +0300
+++ b/libnnchat.c	Thu Jun 23 11:24:25 2011 +0300
@@ -231,7 +231,11 @@
         
         /* Wait for SOCKS server to reply */
         for (status = tries = 1; tries <= 20 && status > 0; tries++) {
-            usleep(500);
+#ifdef __WIN32
+            Sleep(50);
+#else
+            usleep(50000);
+#endif
             nn_conn_reset(conn);
             status = nn_conn_pull(conn);
         }