diff options
author | Petr Vorel <petr.vorel@gmail.com> | 2019-06-11 11:41:36 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2019-06-11 11:41:36 -0400 |
commit | 83b7ac7f3dc74ae021903c4146e48823147a2e32 (patch) | |
tree | c8129d9c02549318246f95df9d163e177fa48cda /tirpc | |
parent | 013cc45abef8055b3ee135fc072e402611a4a3f0 (diff) | |
download | ti-rpc-83b7ac7f3dc74ae021903c4146e48823147a2e32.tar.gz |
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 <petr.vorel@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tirpc')
-rw-r--r-- | tirpc/rpc/rpcent.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |