diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-29 14:52:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-29 14:52:29 (GMT) |
commit | f0048561b7c9f59ae0be8140bbbdc277ed1fb95e (patch) | |
tree | 08945f2604742f7be84f9a2c8ef9ce4fa707db43 /unix/tclEpollNotfy.c | |
parent | 75738205252e3a1805dea171f451ee60691a8b65 (diff) | |
download | tcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.zip tcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.tar.gz tcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.tar.bz2 |
Use fstat64() in stead of fstat() on platforms which support it.
Diffstat (limited to 'unix/tclEpollNotfy.c')
-rw-r--r-- | unix/tclEpollNotfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclEpollNotfy.c b/unix/tclEpollNotfy.c index 287dfe2..4be1439 100644 --- a/unix/tclEpollNotfy.c +++ b/unix/tclEpollNotfy.c @@ -196,7 +196,7 @@ PlatformEventsControl( { struct epoll_event newEvent; struct PlatformEventData *newPedPtr; - struct stat fdStat; + Tcl_StatBuf fdStat; newEvent.events = 0; if (filePtr->mask & (TCL_READABLE | TCL_EXCEPTION)) { @@ -221,7 +221,7 @@ PlatformEventsControl( * files belonging to tsdPtr. */ - if (fstat(filePtr->fd, &fdStat) == -1) { + if (TclOSfstat(filePtr->fd, &fdStat) == -1) { Tcl_Panic("fstat: %s", strerror(errno)); } |