summaryrefslogtreecommitdiff
path: root/test/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'test/rpc')
-rw-r--r--test/rpc/Makefile.in2
-rw-r--r--test/rpc/getrpcent.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/test/rpc/Makefile.in b/test/rpc/Makefile.in
index 5612ff2..d8ad5e6 100644
--- a/test/rpc/Makefile.in
+++ b/test/rpc/Makefile.in
@@ -1,4 +1,4 @@
-# uClibc rpc tests
+# uClibc-ng rpc tests
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
TESTS := getrpcent
diff --git a/test/rpc/getrpcent.c b/test/rpc/getrpcent.c
index e12e768..0283450 100644
--- a/test/rpc/getrpcent.c
+++ b/test/rpc/getrpcent.c
@@ -3,6 +3,7 @@
int main(int argc, char *argv[])
{
+#if defined(__UCLIBC_HAS_RPC__)
struct rpcent *ent;
while ((ent = getrpcent()) != NULL) {
@@ -13,6 +14,6 @@ int main(int argc, char *argv[])
}
endrpcent();
-
+#endif
return 0;
}