summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
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/tclUnixPort.h
parent0c80a3cac0062e82e9cce20f2bc05c3fc8a4e367 (diff)
parentf0048561b7c9f59ae0be8140bbbdc277ed1fb95e (diff)
downloadtcl-25ba69eb02a45ced6213d909a7a7f37712177c30.zip
tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.gz
tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 4027f1f..54f98c8 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -117,15 +117,18 @@ extern "C" {
#pragma clang diagnostic pop
#endif
# define timezone _timezone
+ extern int TclOSfstat(int fd, void *statBuf);
extern int TclOSstat(const char *name, void *statBuf);
extern int TclOSlstat(const char *name, void *statBuf);
#ifdef __cplusplus
}
#endif
#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
+# define TclOSfstat(fd, buf) fstat64(fd, (struct stat64 *)buf)
# define TclOSstat(name, buf) stat64(name, (struct stat64 *)buf)
# define TclOSlstat(name,buf) lstat64(name, (struct stat64 *)buf)
#else
+# define TclOSfstat(fd, buf) fstat(fd, (struct stat *)buf)
# define TclOSstat(name, buf) stat(name, (struct stat *)buf)
# define TclOSlstat(name, buf) lstat(name, (struct stat *)buf)
#endif