diff options
Diffstat (limited to 'main/libtirpc/musl-compliance.patch')
-rw-r--r-- | main/libtirpc/musl-compliance.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/libtirpc/musl-compliance.patch b/main/libtirpc/musl-compliance.patch new file mode 100644 index 0000000000..f325a02b26 --- /dev/null +++ b/main/libtirpc/musl-compliance.patch @@ -0,0 +1,31 @@ +--- 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; |