diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-20 15:18:13 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-20 15:18:13 (GMT) |
| commit | 72bac6d72c25a6da77c3a97d653e93ee13160187 (patch) | |
| tree | ebe1900acd86963cf2f3772600d7dadc2bbb64ab /unix/tclUnixSock.c | |
| parent | 138fdcf62cb9a479f3575715d2effc0dd19454fb (diff) | |
| parent | a344103b2df59b2fbd11188bb6b16293aa44c8ca (diff) | |
| download | tcl-72bac6d72c25a6da77c3a97d653e93ee13160187.zip tcl-72bac6d72c25a6da77c3a97d653e93ee13160187.tar.gz tcl-72bac6d72c25a6da77c3a97d653e93ee13160187.tar.bz2 | |
Merge 8.7
Diffstat (limited to 'unix/tclUnixSock.c')
| -rw-r--r-- | unix/tclUnixSock.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index abd7fa6..43303f8 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -1016,8 +1016,8 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 's') && (strncmp(optionName, "-sockname", len) == 0))) { TcpFdList *fds; - address sockname; - socklen_t size; + address sockname; + socklen_t size; int found = 0; WaitForConnect(statePtr, NULL); @@ -1056,7 +1056,9 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'k') && (strncmp(optionName, "-keepalive", len) == 0))) { - socklen_t size; +#if defined(SO_KEEPALIVE) + socklen_t size; +#endif int opt = 0; if (len == 0) { @@ -1074,7 +1076,9 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 'n') && (strncmp(optionName, "-nodelay", len) == 0))) { - socklen_t size; +#if defined(SOL_TCP) && defined(TCP_NODELAY) + socklen_t size; +#endif int opt = 0; if (len == 0) { |
