# HG changeset patch # User Matti Hamalainen # Date 1308817465 -10800 # Node ID 88ac689d11bccf6bc5d8685debab603a030f8ddc # Parent f73354a738b369c4522d19fce16007feaf37f26c Win32/MinGW specific fixes. diff -r f73354a738b3 -r 88ac689d11bc libnnchat.c --- 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); } diff -r f73354a738b3 -r 88ac689d11bc libnnchat.h --- a/libnnchat.h Thu Jun 23 11:14:06 2011 +0300 +++ b/libnnchat.h Thu Jun 23 11:24:25 2011 +0300 @@ -8,9 +8,12 @@ #include #include +#include "th_types.h" #ifdef __WIN32 #include #include +typedef uint16_t in_port_t; +typedef uint32_t in_addr_t; #else #include #include