test: inet: fix build when res_close support is disabled

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Baruch Siach
2013-08-26 13:55:11 +03:00
committed by Bernhard Reutner-Fischer
parent 54979ed770
commit f33b9d2538

View File

@@ -22,7 +22,9 @@ int main(int argc, char **argv)
abort();
}
#ifdef __UCLIBC_HAS_BSD_RES_CLOSE__
res_close();
#endif
#ifdef __UCLIBC__
/* assume there is at least one resolver configured */
assert (state._u._ext.nscount > 0);