summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches/patch-tirpc_rpc_rpcent_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-06-23 21:15:37 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-24 20:56:01 +0200
commitf920132acf0d785d238388e1652b7023207c553c (patch)
tree6a358b9531986b98f8fc5872787f8fdc86a24dc9 /package/libtirpc/patches/patch-tirpc_rpc_rpcent_h
parent45483a482f5629a1a0b6f3e249c3534f6903568f (diff)
update to latest stable version
Diffstat (limited to 'package/libtirpc/patches/patch-tirpc_rpc_rpcent_h')
-rw-r--r--package/libtirpc/patches/patch-tirpc_rpc_rpcent_h37
1 files changed, 10 insertions, 27 deletions
diff --git a/package/libtirpc/patches/patch-tirpc_rpc_rpcent_h b/package/libtirpc/patches/patch-tirpc_rpc_rpcent_h
index 520442cf4..73c8ef727 100644
--- a/package/libtirpc/patches/patch-tirpc_rpc_rpcent_h
+++ b/package/libtirpc/patches/patch-tirpc_rpc_rpcent_h
@@ -1,31 +1,14 @@
---- libtirpc-0.2.4.orig/tirpc/rpc/rpcent.h 2013-12-09 21:59:51.000000000 +0100
-+++ libtirpc-0.2.4/tirpc/rpc/rpcent.h 2014-06-30 12:14:11.114614896 +0200
-@@ -44,10 +44,12 @@
- /* #pragma ident "@(#)rpcent.h 1.13 94/04/25 SMI" */
- /* @(#)rpcent.h 1.1 88/12/06 SMI */
-
--__BEGIN_DECLS
-+#ifdef __cplusplus
-+extern "C" {
-+#endif
+--- libtirpc-0.3.1.orig/tirpc/rpc/rpcent.h 2015-06-01 14:13:24.000000000 +0200
++++ libtirpc-0.3.1/tirpc/rpc/rpcent.h 2015-06-17 22:09:32.000000000 +0200
+@@ -48,8 +48,9 @@
+ extern "C" {
+ #endif
- /* These are defined in /usr/include/rpc/netdb.h */
--#if 0
-+#if !defined(__GLIBC__) || defined(__UCLIBC__)
+-/* These are defined in /usr/include/rpc/netdb.h */
+-#if !defined(__GLIBC__)
++/* These are defined in /usr/include/rpc/netdb.h, unless we are using
++ the C library without RPC support. */
++#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__)
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */
-@@ -60,8 +62,10 @@ extern struct rpcent *getrpcbynumber(int
- extern struct rpcent *getrpcent(void);
- #endif
-
--extern void setrpcent(int) __THROW;
--extern void endrpcent(void) __THROW;
--__END_DECLS
-+extern void setrpcent(int);
-+extern void endrpcent(void);
-+#ifdef __cplusplus
-+}
-+#endif
-
- #endif /* !_RPC_CENT_H */