From ecda9baf4fe1481d5af8eb6a3cb7da65e7446850 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 7 Aug 2006 19:12:26 +0000 Subject: MFC 1.3: _close() should be called instead of close() here. --- lib/libc/resolv/res_init.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c index 30ff9dc42fe2..a42eb80623e0 100644 --- a/lib/libc/resolv/res_init.c +++ b/lib/libc/resolv/res_init.c @@ -77,6 +77,8 @@ __FBSDID("$FreeBSD$"); #include "port_before.h" +#include "namespace.h" + #include #include #include @@ -93,6 +95,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include "un-namespace.h" + #include "port_after.h" /* ensure that sockaddr_in6 and IN6ADDR_ANY_INIT are declared / defined */ @@ -735,13 +739,13 @@ res_nclose(res_state statp) { int ns; if (statp->_vcsock >= 0) { - (void) close(statp->_vcsock); + (void) _close(statp->_vcsock); statp->_vcsock = -1; statp->_flags &= ~(RES_F_VC | RES_F_CONN); } for (ns = 0; ns < statp->_u._ext.nscount; ns++) { if (statp->_u._ext.nssocks[ns] != -1) { - (void) close(statp->_u._ext.nssocks[ns]); + (void) _close(statp->_u._ext.nssocks[ns]); statp->_u._ext.nssocks[ns] = -1; } } -- cgit v1.3