summaryrefslogtreecommitdiff
path: root/test/rpc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
commite65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch)
tree7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/rpc
parent7988979a722b4cdf287b2093956a76a3f19b9897 (diff)
rework most tests to work as standalone package
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;
}