summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c4
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);