aboutsummaryrefslogtreecommitdiff
path: root/nss/getent.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-02-06 10:43:19 -0800
committerRoland McGrath <roland@hack.frob.com>2015-02-06 10:43:19 -0800
commita1309c2bd0e7469158dfa5dec3334054fad2ed03 (patch)
tree19d19995e9ec59f3ecf94023aef485f7fc995c32 /nss/getent.c
parentac9e0e5e401fa634667a8284a0db0ca886bf816b (diff)
downloadglibc-a1309c2bd0e7469158dfa5dec3334054fad2ed03.zip
glibc-a1309c2bd0e7469158dfa5dec3334054fad2ed03.tar.gz
glibc-a1309c2bd0e7469158dfa5dec3334054fad2ed03.tar.bz2
Exclude rpcent functions and NSS backends for rpc, key when excluding sunrpc.
Diffstat (limited to 'nss/getent.c')
-rw-r--r--nss/getent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nss/getent.c b/nss/getent.c
index 901ec5e..34df848 100644
--- a/nss/getent.c
+++ b/nss/getent.c
@@ -700,6 +700,7 @@ protocols_keys (int number, char *key[])
return result;
}
+#if HAVE_SUNRPC
/* Now is all for rpc */
static void
print_rpc (struct rpcent *rpc)
@@ -745,6 +746,7 @@ rpc_keys (int number, char *key[])
return result;
}
+#endif
/* for services */
static void
@@ -884,7 +886,9 @@ D(netgroup)
D(networks)
D(passwd)
D(protocols)
+#if HAVE_SUNRPC
D(rpc)
+#endif
D(services)
D(shadow)
#undef D