summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches/patch-src_getrpcent_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-18 09:28:59 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-18 09:29:30 +0200
commitc68b9e5076094d60e8f767ffcd3bb9c224fc3fe9 (patch)
treef3d2b986be5a8f0c5039658fc21e420488c07e5d /package/libtirpc/patches/patch-src_getrpcent_c
parent60bc3658b3ef53082c17817690ab0c6bf7f25e26 (diff)
fix musl compile, patches from AlpineLinux
Diffstat (limited to 'package/libtirpc/patches/patch-src_getrpcent_c')
-rw-r--r--package/libtirpc/patches/patch-src_getrpcent_c41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_getrpcent_c b/package/libtirpc/patches/patch-src_getrpcent_c
new file mode 100644
index 000000000..8e213ae54
--- /dev/null
+++ b/package/libtirpc/patches/patch-src_getrpcent_c
@@ -0,0 +1,41 @@
+--- libtirpc-0.2.4.orig/src/getrpcent.c 2013-12-09 21:59:51.000000000 +0100
++++ libtirpc-0.2.4/src/getrpcent.c 2014-05-18 08:04:03.462885748 +0200
+@@ -50,6 +50,10 @@
+ #include <libc_private.h>
+ #endif
+
++#if HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ /*
+ * Internet version.
+ */
+@@ -89,7 +93,7 @@ _rpcdata()
+ return (d);
+ }
+
+-#ifdef GQ
++#if !HAVE_GETRPCBYNYMBER
+ struct rpcent *
+ getrpcbynumber(number)
+ int number;
+@@ -135,7 +139,9 @@ no_yp:
+ endrpcent();
+ return (p);
+ }
++#endif /* !HAVE_GETRPCBYNUMBER */
+
++#if !HAVE_GETRPCBYNAME
+ struct rpcent *
+ getrpcbyname(name)
+ const char *name;
+@@ -158,7 +164,7 @@ done:
+ endrpcent();
+ return (rpc);
+ }
+-#endif /* GQ */
++#endif /* !HAVE_GETRPCBYNAME */
+
+ void
+ setrpcent(f)