1 From a20f33ad121fb1e9d1fbc31a0044546450677e7a 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 does not install rpcent.h
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 tirpc/rpc/rpcent.h | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-)
11 diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
12 index c865e51..45775ed 100644
13 --- a/tirpc/rpc/rpcent.h
14 +++ b/tirpc/rpc/rpcent.h
19 -/* These are defined in /usr/include/rpc/netdb.h */
21 +/* These are defined in /usr/include/rpc/netdb.h, unless we are using
22 + the C library without RPC support. */
23 +#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__)
25 char *r_name; /* name of server for this rpc program */
26 char **r_aliases; /* alias list */