libtirpc 1.1.4
[git/cygwin-packages/libtirpc.git] / 0.2.4-cygwin-poll.patch
1 --- origsrc/libtirpc-0.2.4/src/clnt_bcast.c 2013-12-09 14:59:51.000000000 -0600
2 +++ src/libtirpc-0.2.4/src/clnt_bcast.c 2014-06-09 19:01:16.077151400 -0500
3 @@ -71,8 +71,12 @@
4 #define INITTIME 4000 /* Time to wait initially */
5 #define WAITTIME 8000 /* Maximum time to wait */
6
7 +#ifndef POLLRDNORM
8 # define POLLRDNORM 0x040 /* Normal data may be read. */
9 +#endif
10 +#ifndef POLLRDBAND
11 # define POLLRDBAND 0x080 /* Priority data may be read. */
12 +#endif
13
14
15
16 @@ -539,7 +543,7 @@ rpc_broadcast_exp(prog, vers, proc, xarg
17 try_again:
18 inlen = recvfrom(fdlist[i].fd, inbuf, fdlist[i].dsize,
19 0, (struct sockaddr *)(void *)&fdlist[i].raddr,
20 - &fdlist[i].asize);
21 + (socklen_t *)&fdlist[i].asize);
22 if (inlen < 0) {
23 if (errno == EINTR)
24 goto try_again;
This page took 0.040293 seconds and 5 git commands to generate.