From e65912f8b2a6fa966b1ba45360070cf9f25568b4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 18:43:57 +0200 Subject: rework most tests to work as standalone package --- test/rpc/Makefile.in | 2 +- test/rpc/getrpcent.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test/rpc') 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; } -- cgit v1.2.3