This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix compilation errors in win32sck.c with MinGW/gcc -xc++
authorSteve Hay <steve.m.hay@googlemail.com>
Sat, 20 Dec 2014 13:06:41 +0000 (13:06 +0000)
committerSteve Hay <steve.m.hay@googlemail.com>
Wed, 24 Dec 2014 13:20:06 +0000 (13:20 +0000)
error: invalid conversion from 'const timeval*' to 'PTIMEVAL'

win32/win32sck.c

index 674add2..3f97241 100644 (file)
@@ -533,7 +533,7 @@ win32_select(int nfds, Perl_fd_set* rd, Perl_fd_set* wr, Perl_fd_set* ex, const
     }
 
     errno = save_errno;
-    SOCKET_TEST_ERROR(r = select(nfds, &nrd, &nwr, &nex, timeout));
+    SOCKET_TEST_ERROR(r = select(nfds, &nrd, &nwr, &nex, (PTIMEVAL)timeout));
     save_errno = errno;
 
     for (i = 0; i < nfds; i++) {