diff options
author | hobbs <hobbs@noemail.net> | 2000-01-26 03:37:59 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-01-26 03:37:59 (GMT) |
commit | 7872d738c289b10f354aff5c1e1772f481e6b23d (patch) | |
tree | 7087a400bb34006a2c5188e0d6b93db5b2d703a8 /unix/tclUnixChan.c | |
parent | 603509b611df5506f1f7ef5918c96fcb27b5dd5f (diff) | |
download | tcl-7872d738c289b10f354aff5c1e1772f481e6b23d.zip tcl-7872d738c289b10f354aff5c1e1772f481e6b23d.tar.gz tcl-7872d738c289b10f354aff5c1e1772f481e6b23d.tar.bz2 |
* unix/tcl.m4: modified EXTRA_CFLAGS to add -DHAVE_TZSET for
OSF1-V* and ULTRIX-4.* when not using gcc. Also added higher min
stack size for OSF1-V* when building with threads. [Bug: 4063]
* unix/tclUnixChan.c (CreateSocketAddress): changed comparison
with -1 to 0xFFFFFFFF, to ensure 32 bit comparison even on 64 bit
systems. [Bug: 3878]
FossilOrigin-Name: 4eda7886fc3ad99a10f0a580e51c6fa1a0f73763
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 7d063f3..06a8a42 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixChan.c,v 1.12 2000/01/24 02:30:16 hobbs Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.13 2000/01/26 03:38:00 hobbs Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -2123,10 +2123,10 @@ CreateSocketAddress(sockaddrPtr, host, port) } addr.s_addr = inet_addr(native); /* INTL: Native. */ /* - * 0xFFFFFFFFFFFFFFF is the pedantic way to say -1 - * for either 32 or 64 bits systems. + * This is 0xFFFFFFFF to ensure that it compares as a 32bit -1 + * on either 32 or 64 bits systems. */ - if (addr.s_addr == 0xFFFFFFFFFFFFFFF) { + if (addr.s_addr == 0xFFFFFFFF) { hostent = gethostbyname(native); /* INTL: Native. */ if (hostent != NULL) { memcpy((VOID *) &addr, |