python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / libtirpc / 0002-uClibc-without-RPC-support-and-musl-does-not-install-rpcent.h.patch
blob643a57ed5a027cb4fc82601ee48fa49eb7ec334c
1 From 7aa1fe6a0f9280571117c30c03c2cc521cd86ec3 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 23 Jun 2012 21:58:07 +0200
4 Subject: [PATCH] uClibc without RPC support and musl does not install rpcent.h
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 [yann.morin.1998@free.fr: update for 0.3.1]
8 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9 [joerg.krause@embedded.rocks: musl fix]
10 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
11 ---
12 tirpc/rpc/rpcent.h | 5 +++--
13 1 file changed, 3 insertions(+), 2 deletions(-)
15 diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
16 index 147f909..4a58180 100644
17 --- a/tirpc/rpc/rpcent.h
18 +++ b/tirpc/rpc/rpcent.h
19 @@ -48,8 +48,9 @@
20 extern "C" {
21 #endif
23 -/* These are defined in /usr/include/rpc/netdb.h */
24 -#if !defined(__GLIBC__)
25 +/* These are defined in /usr/include/rpc/netdb.h, unless we are using
26 + the C library without RPC support. */
27 +#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)
28 struct rpcent {
29 char *r_name; /* name of server for this rpc program */
30 char **r_aliases; /* alias list */
31 --
32 1.9.1