summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-12-04 20:31:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-12-04 20:31:44 (GMT)
commit93b8f2c30656668655ffad72004b3a56525f0ab7 (patch)
treeaf50bcec85c53b3240e016810f9b6d82a643822a /unix/tclUnixFCmd.c
parent1d7743062b46a9021442e694fb0ce567267a9bb6 (diff)
parent6e413c43c808774a91f542de590fb533b0fdd1c7 (diff)
downloadtcl-93b8f2c30656668655ffad72004b3a56525f0ab7.zip
tcl-93b8f2c30656668655ffad72004b3a56525f0ab7.tar.gz
tcl-93b8f2c30656668655ffad72004b3a56525f0ab7.tar.bz2
Remove a lot of dead code: macOS < 10.9 is no longer supported
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index d9429c8..db45999 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -244,39 +244,13 @@ Realpath(
#endif /* PURIFY */
#ifndef NO_REALPATH
-#if defined(__APPLE__) && TCL_THREADS && \
- defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \
- MAC_OS_X_VERSION_MIN_REQUIRED < 1030
-/*
- * Prior to Darwin 7, realpath is not thread-safe, c.f. Bug 711232; if we
- * might potentially be running on pre-10.3 OSX, check Darwin release at
- * runtime before using realpath.
- */
-
-MODULE_SCOPE long tclMacOSXDarwinRelease;
-# define haveRealpath (tclMacOSXDarwinRelease >= 7)
-#else
# define haveRealpath 1
-#endif
-#else /* NO_REALPATH */
-/*
- * At least TclpObjNormalizedPath now requires REALPATH
-*/
-#error NO_REALPATH is not supported
#endif /* NO_REALPATH */
#ifdef HAVE_FTS
-#if defined(__APPLE__) && defined(__LP64__) && \
- defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \
- MAC_OS_X_VERSION_MIN_REQUIRED < 1050
-/*
- * Prior to Darwin 9, 64bit fts_open() without FTS_NOSTAT may crash (due to a
- * 64bit-unsafe ALIGN macro); if we could be running on pre-10.5 OSX, check
- * Darwin release at runtime and do a separate stat() if necessary.
- */
-
-MODULE_SCOPE long tclMacOSXDarwinRelease;
-# define noFtsStat (tclMacOSXDarwinRelease < 9)
+#if defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
+/* fts doesn't do stat64 */
+# define noFtsStat 1
#else
# define noFtsStat 0
#endif