From 83b7ac7f3dc74ae021903c4146e48823147a2e32 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Tue, 11 Jun 2019 11:41:36 -0400 Subject: Commit e45bf420983e fixed issue for uclibc-ng, but on uclibc this depends on __UCLIBC_HAS_RPC__. This is old patch from Buildroot commit c54af0a294 ("libtirpc: handle the case where uClibc may have RPC support") by Thomas Petazzoni. Fixes: 6d8d4b5a7bf6 ("Include string.h for memset") Fixes: e45bf420983e ("Fix struct rpcent for uclibc-ng") Signed-off-by: Petr Vorel Signed-off-by: Steve Dickson --- tirpc/rpc/rpcent.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tirpc') diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h index 9d3ef9c..5bff876 100644 --- a/tirpc/rpc/rpcent.h +++ b/tirpc/rpc/rpcent.h @@ -48,8 +48,9 @@ extern "C" { #endif -/* These are defined in /usr/include/rpc/netdb.h */ -#if !defined(__GLIBC__) || defined(__UCLIBC__) +/* 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__) || !defined(__GLIBC__) struct rpcent { char *r_name; /* name of server for this rpc program */ char **r_aliases; /* alias list */ -- cgit v1.2.1