diff udp_sync.c @ 33922:25de7f7ee57c

Set receive timeout correctly on Windows.
author reimar
date Wed, 24 Aug 2011 19:16:02 +0000
parents 6c1d39323b6e
children 2228001384a5
line wrap: on
line diff
--- a/udp_sync.c	Wed Aug 24 18:54:08 2011 +0000
+++ b/udp_sync.c	Wed Aug 24 19:16:02 2011 +0000
@@ -95,7 +95,11 @@
 
     static int sockfd = -1;
     if (sockfd == -1) {
+#if HAVE_WINSOCK2_H
+        DWORD tv = 30000;
+#else
         struct timeval tv = { .tv_sec = 30 };
+#endif
         struct sockaddr_in servaddr = { 0 };
 
         startup();