diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 18:43:57 +0200 |
commit | e65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch) | |
tree | 7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/rpc | |
parent | 7988979a722b4cdf287b2093956a76a3f19b9897 (diff) |
rework most tests to work as standalone package
Diffstat (limited to 'test/rpc')
-rw-r--r-- | test/rpc/Makefile.in | 2 | ||||
-rw-r--r-- | test/rpc/getrpcent.c | 3 |
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; } |