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)
commit37ae57d4d60c1512e5f7751aa2281c93c8093132 (patch)
tree291a71c2236be89384aa78a70cec35de2ef639e2 /generic/tclIOSock.c
parent51f3ea4437aa1798abf9e42d125c91110ac674a1 (diff)
downloadtcl-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/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);