summaryrefslogtreecommitdiffstats
path: root/main/libtirpc/musl-compliance.patch
blob: a6d69accfd21b7308df1df823420a56a7a092f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- libtirpc-0.2.4.orig/src/bindresvport.c
+++ libtirpc-0.2.4/src/bindresvport.c
@@ -37,6 +37,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
+#include <netdb.h>
 #include <netinet/in.h>
 
 #include <errno.h>
--- libtirpc-0.2.4.orig/tirpc/rpc/rpcent.h
+++ libtirpc-0.2.4/tirpc/rpc/rpcent.h
@@ -47,7 +47,7 @@
 __BEGIN_DECLS
 
 /* These are defined in /usr/include/rpc/netdb.h */
-#if 0
+#if !defined(__GLIBC__)
 struct rpcent {
 	char	*r_name;	/* name of server for this rpc program */
 	char	**r_aliases;	/* alias list */
--- libtirpc-0.2.4.orig/tirpc/rpc/types.h
+++ libtirpc-0.2.4/tirpc/rpc/types.h
@@ -39,6 +39,7 @@
 #define _TIRPC_TYPES_H
 
 #include <sys/types.h>
+#include <sys/cdefs.h>
 
 typedef int32_t bool_t;
 typedef int32_t enum_t;
--- libtirpc-0.2.4.orig/tirpc/netconfig.h
+++ libtirpc-0.2.4/tirpc/netconfig.h
@@ -2,6 +2,7 @@
 #define _NETCONFIG_H_
 
 #include <features.h>
+#include <sys/cdefs.h>
 
 #define NETCONFIG "/etc/netconfig"
 #define NETPATH	  "NETPATH"