diff options
author | Joshua Kinard <kumba@gentoo.org> | 2017-07-05 10:54:48 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-07-05 10:55:40 -0400 |
commit | e45bf420983e834003f673188d8f4688494978a8 (patch) | |
tree | b189e60f1558e82e4b7a9d329c4c1df8da686f2a /tirpc/rpc | |
parent | dd9c7cf4f8f375c6d641b760d124650c418c2ce3 (diff) | |
download | ti-rpc-e45bf420983e834003f673188d8f4688494978a8.tar.gz |
Fix struct rpcent for uclibc-nglibtirpc-1-0-2-rc4
Commit 6d8d4b5a7bf6 addresses an issue for musl, based on a description of
an earlier patch at https://patchwork.kernel.org/patch/5499671/. That
description notes uncertainty with uclibc, which also defines __GLIBC__.
This patch fixes the uclibc case by also checking for __UCLIBC__.
Fixes: 6d8d4b5a7bf6 ("Include string.h for memset")
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Cc: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'tirpc/rpc')
-rw-r--r-- | tirpc/rpc/rpcent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h index e07503c..9d3ef9c 100644 --- a/tirpc/rpc/rpcent.h +++ b/tirpc/rpc/rpcent.h @@ -49,7 +49,7 @@ extern "C" { #endif /* These are defined in /usr/include/rpc/netdb.h */ -#if !defined(__GLIBC__) +#if !defined(__GLIBC__) || defined(__UCLIBC__) struct rpcent { char *r_name; /* name of server for this rpc program */ char **r_aliases; /* alias list */ |