ubsan: bpf: left shift cannot be represented in type 'DI' (aka 'long')
[deliverable/binutils-gdb.git] / gdb / mingw-hdep.c
index 44fb22e9a161b1bceaaf2bf3b2de368acfe3a3a7..0af1b39acdcc9987a73669f9116d05474d843fc9 100644 (file)
@@ -64,6 +64,17 @@ gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
   int num_ready;
   size_t indx;
 
+  if (n == 0)
+    {
+      /* The MS API says that the first argument to
+        WaitForMultipleObjects cannot be zero.  That's why we just
+        use a regular Sleep here.  */
+      if (timeout != NULL)
+       Sleep (timeout->tv_sec * 1000 + timeout->tv_usec / 1000);
+
+      return 0;
+    }
+
   num_ready = 0;
   num_handles = 0;
   num_scbs = 0;
This page took 0.023492 seconds and 4 git commands to generate.