2015-06-14 23:59:28 +02:00
|
|
|
From 7aa1fe6a0f9280571117c30c03c2cc521cd86ec3 Mon Sep 17 00:00:00 2001
|
2012-11-04 08:34:10 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Sat, 23 Jun 2012 21:58:07 +0200
|
2015-07-23 08:38:25 +02:00
|
|
|
Subject: [PATCH] uClibc without RPC support and musl does not install rpcent.h
|
2012-11-04 08:34:10 +01:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2015-06-14 23:59:28 +02:00
|
|
|
[yann.morin.1998@free.fr: update for 0.3.1]
|
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
2015-07-23 08:38:25 +02:00
|
|
|
[joerg.krause@embedded.rocks: musl fix]
|
|
|
|
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
2017-07-22 14:12:49 +02:00
|
|
|
[bernd.kuhls@t-online.de: update for 1.0.2]
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2012-11-04 08:34:10 +01:00
|
|
|
---
|
2014-06-30 13:56:08 +02:00
|
|
|
tirpc/rpc/rpcent.h | 5 +++--
|
2012-11-10 12:42:41 +01:00
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
2012-11-04 08:34:10 +01:00
|
|
|
|
|
|
|
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
|
2015-06-14 23:59:28 +02:00
|
|
|
index 147f909..4a58180 100644
|
2012-11-04 08:34:10 +01:00
|
|
|
--- a/tirpc/rpc/rpcent.h
|
|
|
|
+++ b/tirpc/rpc/rpcent.h
|
2015-06-14 23:59:28 +02:00
|
|
|
@@ -48,8 +48,9 @@
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2012-11-04 08:34:10 +01:00
|
|
|
|
2012-11-10 12:42:41 +01:00
|
|
|
-/* These are defined in /usr/include/rpc/netdb.h */
|
2017-07-22 14:12:49 +02:00
|
|
|
-#if !defined(__GLIBC__) || defined(__UCLIBC__)
|
2012-11-10 12:42:41 +01:00
|
|
|
+/* These are defined in /usr/include/rpc/netdb.h, unless we are using
|
|
|
|
+ the C library without RPC support. */
|
2015-07-23 08:38:25 +02:00
|
|
|
+#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)
|
2012-11-04 08:34:10 +01:00
|
|
|
struct rpcent {
|
|
|
|
char *r_name; /* name of server for this rpc program */
|
|
|
|
char **r_aliases; /* alias list */
|
|
|
|
--
|
2015-06-14 23:59:28 +02:00
|
|
|
1.9.1
|
2012-11-04 08:34:10 +01:00
|
|
|
|