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 | 8641e9fcb65278c9c84f930141d48ec8c5cbeb8b (patch) | |
| tree | ba286e915679c5a07973d166d1fd1a699f873652 /unix/tclUnixChan.c | |
| parent | 54078446ae611213f35b859f49438b09fac35dcd (diff) | |
| parent | e4a014851429c021cfb2a308afaf740f5e66ad90 (diff) | |
| download | tcl-8641e9fcb65278c9c84f930141d48ec8c5cbeb8b.zip tcl-8641e9fcb65278c9c84f930141d48ec8c5cbeb8b.tar.gz tcl-8641e9fcb65278c9c84f930141d48ec8c5cbeb8b.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); |
