diff options
| author | hobbs <hobbs> | 2000-01-26 03:38:00 (GMT) | 
|---|---|---|
| committer | hobbs <hobbs> | 2000-01-26 03:38:00 (GMT) | 
| commit | 83cc84e37ef119daa5e1134aec6ce159a68799cb (patch) | |
| tree | 7087a400bb34006a2c5188e0d6b93db5b2d703a8 /unix/tclUnixChan.c | |
| parent | 3eb5dfa1d24599dedc834f002282d654e757b552 (diff) | |
| download | tcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.zip tcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.tar.gz tcl-83cc84e37ef119daa5e1134aec6ce159a68799cb.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]
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,  | 
