summaryrefslogtreecommitdiffstats
path: root/unix/tclKqueueNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-29 14:54:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-29 14:54:06 (GMT)
commit25ba69eb02a45ced6213d909a7a7f37712177c30 (patch)
tree2c169fee7d6296592c6b634639949a2b837d416e /unix/tclKqueueNotfy.c
parent0c80a3cac0062e82e9cce20f2bc05c3fc8a4e367 (diff)
parentf0048561b7c9f59ae0be8140bbbdc277ed1fb95e (diff)
downloadtcl-25ba69eb02a45ced6213d909a7a7f37712177c30.zip
tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.gz
tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclKqueueNotfy.c')
-rw-r--r--unix/tclKqueueNotfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclKqueueNotfy.c b/unix/tclKqueueNotfy.c
index 381d350..3396af3 100644
--- a/unix/tclKqueueNotfy.c
+++ b/unix/tclKqueueNotfy.c
@@ -162,7 +162,7 @@ PlatformEventsControl(
int numChanges;
struct kevent changeList[2];
struct PlatformEventData *newPedPtr;
- struct stat fdStat;
+ Tcl_StatBuf fdStat;
if (isNew) {
newPedPtr = (struct PlatformEventData *)
@@ -180,7 +180,7 @@ PlatformEventsControl(
* with regular files belonging to tsdPtr.
*/
- if (fstat(filePtr->fd, &fdStat) == -1) {
+ if (TclOSfstat(filePtr->fd, &fdStat) == -1) {
Tcl_Panic("fstat: %s", strerror(errno));
} else if ((fdStat.st_mode & S_IFMT) == S_IFREG
|| (fdStat.st_mode & S_IFMT) == S_IFDIR