summaryrefslogtreecommitdiffstats
path: root/generic/tclIOSock.c
diff options
context:
space:
mode:
authorrmax <rmax>2002-07-29 16:54:40 (GMT)
committerrmax <rmax>2002-07-29 16:54:40 (GMT)
commit587c7ca09720a26f23f97f9f3306a91d0a2c3059 (patch)
tree291a71c2236be89384aa78a70cec35de2ef639e2 /generic/tclIOSock.c
parentc32b8c01183be642719a3d0b42054c16237110e1 (diff)
downloadtcl-587c7ca09720a26f23f97f9f3306a91d0a2c3059.zip
tcl-587c7ca09720a26f23f97f9f3306a91d0a2c3059.tar.gz
tcl-587c7ca09720a26f23f97f9f3306a91d0a2c3059.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/tclIOSock.c')
-rw-r--r--generic/tclIOSock.c7
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 *)&current, &len);