diff options
author | rmax <rmax> | 2002-07-29 16:54:40 (GMT) |
---|---|---|
committer | rmax <rmax> | 2002-07-29 16:54:40 (GMT) |
commit | 37ae57d4d60c1512e5f7751aa2281c93c8093132 (patch) | |
tree | 291a71c2236be89384aa78a70cec35de2ef639e2 /generic | |
parent | 51f3ea4437aa1798abf9e42d125c91110ac674a1 (diff) | |
download | tcl-37ae57d4d60c1512e5f7751aa2281c93c8093132.zip tcl-37ae57d4d60c1512e5f7751aa2281c93c8093132.tar.gz tcl-37ae57d4d60c1512e5f7751aa2281c93c8093132.tar.bz2 |
* unix/tcl.m4 (SC_SERIAL_PORT): Fixed detection for cases when
configure's stdin is not a tty.
* unix/tclUnixPort.h:
* generic/tclIOSock.c: Changed size_t to socklen_t in
socket-related function calls.
* unix/configure.in: Added test and fallback definition
for socklen_t.
* unix/configure: generated.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIOSock.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c index 69a151a..4fa451e 100644 --- a/generic/tclIOSock.c +++ b/generic/tclIOSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOSock.c,v 1.6 2002/01/25 20:40:55 dgp Exp $ + * RCS: @(#) $Id: tclIOSock.c,v 1.7 2002/07/29 16:54:41 rmax Exp $ */ #include "tclInt.h" @@ -91,10 +91,7 @@ TclSockMinimumBuffers(sock, size) int size; /* Minimum buffer size */ { int current; - /* - * Should be socklen_t, but HP10.20 (g)cc chokes - */ - size_t len; + socklen_t len; len = sizeof(int); getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)¤t, &len); |