libtirpc 0.2.1
[git/cygwin-packages/libtirpc.git] / 02-silence-more-warnings.patch
CommitLineData
08c4e1e5
YS
1diff --git a/src/clnt_bcast.c b/src/clnt_bcast.c
2index 140407b..d2c4147 100644
3--- a/src/clnt_bcast.c
4+++ b/src/clnt_bcast.c
5@@ -74,8 +74,12 @@
6 #define INITTIME 4000 /* Time to wait initially */
7 #define WAITTIME 8000 /* Maximum time to wait */
8
9+#ifndef POLLRDNORM
10 # define POLLRDNORM 0x040 /* Normal data may be read. */
11+#endif
12+#ifndef POLLRDBAND
13 # define POLLRDBAND 0x080 /* Priority data may be read. */
14+#endif
15
16
17
18@@ -542,7 +546,7 @@ rpc_broadcast_exp(prog, vers, proc, xargs, argsp, xresults, resultsp,
19 try_again:
20 inlen = recvfrom(fdlist[i].fd, inbuf, fdlist[i].dsize,
21 0, (struct sockaddr *)(void *)&fdlist[i].raddr,
22- &fdlist[i].asize);
23+ (socklen_t *)&fdlist[i].asize);
24 if (inlen < 0) {
25 if (errno == EINTR)
26 goto try_again;
27diff --git a/tirpc/rpc/clnt_soc.h b/tirpc/rpc/clnt_soc.h
28index 82330a3..8172f04 100644
29--- a/tirpc/rpc/clnt_soc.h
30+++ b/tirpc/rpc/clnt_soc.h
31@@ -47,6 +47,7 @@
32 */
33
34 #include <sys/cdefs.h>
35+#include <netinet/in.h>
36
37 #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */
38
This page took 0.023942 seconds and 5 git commands to generate.