Browse Source

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>
Baruch Siach 10 years ago
parent
commit
f33b9d2538
1 changed files with 2 additions and 0 deletions
  1. 2 0
      test/inet/tst-res.c

+ 2 - 0
test/inet/tst-res.c

@@ -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);