diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-31 13:34:16 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-31 13:34:16 (GMT) |
| commit | 5e0992037e4e7df10b147f202093e029c8414e75 (patch) | |
| tree | ba286e915679c5a07973d166d1fd1a699f873652 /unix/tclUnixChan.c | |
| parent | d840e812e952c56186132af0d06d241cdd8078c7 (diff) | |
| parent | 4bf05437d0cb7b72c578c228b5123f6b13855899 (diff) | |
| download | tcl-5e0992037e4e7df10b147f202093e029c8414e75.zip tcl-5e0992037e4e7df10b147f202093e029c8414e75.tar.gz tcl-5e0992037e4e7df10b147f202093e029c8414e75.tar.bz2 | |
Merge 8.7 ("struct stat" -> Tcl_StatBuf change only)
Diffstat (limited to 'unix/tclUnixChan.c')
| -rw-r--r-- | unix/tclUnixChan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index aaa8e93..1436b5c 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -1906,7 +1906,7 @@ Tcl_MakeFileChannel( char channelName[16 + TCL_INTEGER_SPACE]; int fd = PTR2INT(handle); const Tcl_ChannelType *channelTypePtr; - struct stat buf; + Tcl_StatBuf buf; if (mode == 0) { return NULL; @@ -1918,7 +1918,7 @@ Tcl_MakeFileChannel( snprintf(channelName, sizeof(channelName), "serial%d", fd); } else #endif /* SUPPORTS_TTY */ - if (fstat(fd, &buf) == 0 && S_ISSOCK(buf.st_mode)) { + if (TclOSfstat(fd, &buf) == 0 && S_ISSOCK(buf.st_mode)) { struct sockaddr sockaddr; socklen_t sockaddrLen = sizeof(sockaddr); |
