diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-26 14:54:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-26 14:54:04 (GMT) |
commit | 96f84a6d9accbe42d686e87728ec5c65dc5746bc (patch) | |
tree | 5aaadef33c994c2b6ffdd3c0565fbf4a2c388a75 /unix/tclUnixCompat.c | |
parent | cf0a602c97b060f03a1ae8920f1ae7ed67ac6ff9 (diff) | |
parent | 6ad60f8b3b06f698cc20a5f8b6becb499ee9ecd7 (diff) | |
download | tcl-96f84a6d9accbe42d686e87728ec5c65dc5746bc.zip tcl-96f84a6d9accbe42d686e87728ec5c65dc5746bc.tar.gz tcl-96f84a6d9accbe42d686e87728ec5c65dc5746bc.tar.bz2 |
Merge 8.6
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r-- | unix/tclUnixCompat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index 55c5fa9..74b4bf3 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -554,17 +554,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) @@ -624,17 +624,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 |