summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-26 15:15:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-26 15:15:36 (GMT)
commit6477dfd763c6c39e303dfebc8ead62f00cf5cefd (patch)
tree31fc3b2953970e21307e4ace8f0d40ae5a5e9b69 /unix/tclUnixCompat.c
parent6c0b2e84d70364c6ffcc6692a90ac2913e18965a (diff)
parent96f84a6d9accbe42d686e87728ec5c65dc5746bc (diff)
downloadtcl-6477dfd763c6c39e303dfebc8ead62f00cf5cefd.zip
tcl-6477dfd763c6c39e303dfebc8ead62f00cf5cefd.tar.gz
tcl-6477dfd763c6c39e303dfebc8ead62f00cf5cefd.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index a088857..ef468f6 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -552,17 +552,17 @@ TclpGetHostByName(
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
#if defined(HAVE_GETHOSTBYNAME_R_5)
- int h_errno;
+ int local_errno;
return gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf,
- sizeof(tsdPtr->hbuf), &h_errno);
+ sizeof(tsdPtr->hbuf), &local_errno);
#elif defined(HAVE_GETHOSTBYNAME_R_6)
struct hostent *hePtr = NULL;
- int h_errno, result;
+ int local_errno, result;
result = gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf,
- sizeof(tsdPtr->hbuf), &hePtr, &h_errno);
+ sizeof(tsdPtr->hbuf), &hePtr, &local_errno);
return (result == 0) ? hePtr : NULL;
#elif defined(HAVE_GETHOSTBYNAME_R_3)
@@ -622,17 +622,17 @@ TclpGetHostByAddr(
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
#if defined(HAVE_GETHOSTBYADDR_R_7)
- int h_errno;
+ int local_errno;
return gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf,
- sizeof(tsdPtr->hbuf), &h_errno);
+ sizeof(tsdPtr->hbuf), &local_errno);
#elif defined(HAVE_GETHOSTBYADDR_R_8)
struct hostent *hePtr;
- int h_errno;
+ int local_errno;
return (gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf,
- sizeof(tsdPtr->hbuf), &hePtr, &h_errno) == 0)
+ sizeof(tsdPtr->hbuf), &hePtr, &local_errno) == 0)
? &tsdPtr->hent : NULL;
#else
#define NEED_COPYHOSTENT 1