summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-19 17:48:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-19 17:48:11 (GMT)
commit8c190c2de231c115b66ef2dc05a8d9b8da20b930 (patch)
tree88b47092871d936a556c6ca4ffb3f24c7e1b599e
parentf50af0e8c33d29a694f03efedfc7bf1ae18b3e16 (diff)
parent62a66095ee80918300cf2d26a7cbecf8fdfab4e1 (diff)
downloadtcl-8c190c2de231c115b66ef2dc05a8d9b8da20b930.zip
tcl-8c190c2de231c115b66ef2dc05a8d9b8da20b930.tar.gz
tcl-8c190c2de231c115b66ef2dc05a8d9b8da20b930.tar.bz2
fix Bug 3598300 on MacOSX too
-rw-r--r--generic/tcl.h2
-rw-r--r--generic/tclPort.h5
-rw-r--r--unix/tclUnixFCmd.c2
-rw-r--r--unix/tclUnixPort.h2
4 files changed, 4 insertions, 7 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 33730d4..5fde9dc 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -436,7 +436,7 @@ typedef unsigned TCL_WIDE_INT_TYPE Tcl_WideUInt;
struct {long tv_sec;} st_ctim;
/* Here is a 4-byte gap */
} Tcl_StatBuf;
-#elif defined(HAVE_STRUCT_STAT64)
+#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
typedef struct stat64 Tcl_StatBuf;
#else
typedef struct stat Tcl_StatBuf;
diff --git a/generic/tclPort.h b/generic/tclPort.h
index 198ee76..12a60db 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.h
@@ -19,13 +19,10 @@
#endif
#if defined(_WIN32)
# include "tclWinPort.h"
-#elif !defined(MAC_OSX_TCL)
+#else
# include "tclUnixPort.h"
#endif
#include "tcl.h"
-#if defined(MAC_OSX_TCL)
-# include "tclUnixPort.h"
-#endif
#if !defined(LLONG_MIN)
# ifdef TCL_WIDE_INT_IS_LONG
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 79f115e..d655990 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -232,7 +232,7 @@ MODULE_SCOPE long tclMacOSXDarwinRelease;
#endif /* NO_REALPATH */
#ifdef HAVE_FTS
-#ifdef HAVE_STRUCT_STAT64
+#if defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
/* fts doesn't do stat64 */
#define noFtsStat 1
#elif defined(__APPLE__) && defined(__LP64__) && \
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 99c564b..7cfeec0 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -100,7 +100,7 @@ typedef off_t Tcl_SeekOffset;
extern char **__cygwin_environ;
extern int TclOSstat(const char *name, void *statBuf);
extern int TclOSlstat(const char *name, void *statBuf);
-#elif defined(HAVE_STRUCT_STAT64)
+#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
# define TclOSstat stat64
# define TclOSlstat lstat64
#else