diff options
Diffstat (limited to 'src/microhttpd/mhd_sockets.h')
-rw-r--r-- | src/microhttpd/mhd_sockets.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h index d13221bc..74f5be2d 100644 --- a/src/microhttpd/mhd_sockets.h +++ b/src/microhttpd/mhd_sockets.h @@ -259,8 +259,9 @@ ( ( (((void*)(r) == (void*)0) || ((fd_set*)(r))->fd_count == 0) && \ (((void*)(w) == (void*)0) || ((fd_set*)(w))->fd_count == 0) && \ (((void*)(e) == (void*)0) || ((fd_set*)(e))->fd_count == 0) ) ? \ - ( ((void*)(t) == (void*)0) ? \ - (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \ + ( ((void*)(t) == (void*)0) ? 0 : \ + (Sleep(((struct timeval*)(t))->tv_sec * 1000 + \ + ((struct timeval*)(t))->tv_usec / 1000), 0) ) : \ (select((int)0,(r),(w),(e),(t))) ) #endif |