diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-08-04 10:21:11 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-08-04 10:21:11 +0000 |
commit | 500fe2a19c7be7152784b0dffdc857dcb18a8c08 (patch) | |
tree | 8e8f560d0143786c52dff84bb55bbfe3877000cb | |
parent | 776fc0e90e9072cda064b69e91a6a0e6bede1aa1 (diff) |
Notes
-rw-r--r-- | lib/libc/resolv/res_init.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 <sys/types.h> #include <sys/param.h> #include <sys/socket.h> @@ -93,6 +95,8 @@ __FBSDID("$FreeBSD$"); #include <unistd.h> #include <netdb.h> +#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; } } |