summaryrefslogtreecommitdiffstats
path: root/mac/tclMacPort.h
diff options
context:
space:
mode:
authordas <das>2003-03-03 20:22:35 (GMT)
committerdas <das>2003-03-03 20:22:35 (GMT)
commit55bb78dc4fdf14318cfcbbeb264b7ef0a3e0a57e (patch)
tree775cc0d3807a1e773d6bf08be556d649fee410ef /mac/tclMacPort.h
parentdcffed8c8901fe70eb77440945d36aad3f95b6e9 (diff)
downloadtcl-55bb78dc4fdf14318cfcbbeb264b7ef0a3e0a57e.zip
tcl-55bb78dc4fdf14318cfcbbeb264b7ef0a3e0a57e.tar.gz
tcl-55bb78dc4fdf14318cfcbbeb264b7ef0a3e0a57e.tar.bz2
Mac OS Classic specific fixes:core_8_4_2
* generic/tclIOUtil.c (TclNewFSPathObj): on TCL_PLATFORM_MAC, skip potential directory separator at the beginning of addStrRep. * mac/tclMacChan.c (OpenFileChannel, CommonWatch): followup fixes to cut and splice implementation for file channels. * mac/tclMacFile.c (TclpUtime): pass native path to utime(). * mac/tclMacFile.c (TclpObjLink): correctly implemented creation of alias files via new static proc CreateAliasFile(). * mac/tclMacPort.h: define S_ISLNK macro to fix stat'ing of links. * mac/tclMacUtil.c (FSpLocationFromPathAlias): fix to enable stat'ing of broken links.
Diffstat (limited to 'mac/tclMacPort.h')
-rw-r--r--mac/tclMacPort.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/mac/tclMacPort.h b/mac/tclMacPort.h
index a868733..482f6e8 100644
--- a/mac/tclMacPort.h
+++ b/mac/tclMacPort.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacPort.h,v 1.16 2002/10/09 11:54:34 das Exp $
+ * RCS: @(#) $Id: tclMacPort.h,v 1.17 2003/03/03 20:22:44 das Exp $
*/
@@ -77,6 +77,10 @@
#endif /* __MWERKS__ */
+#if defined(S_IFBLK) && !defined(S_ISLNK)
+#define S_ISLNK(m) (((m)&(S_IFMT)) == (S_IFLNK))
+#endif
+
/*
* Many signals are not supported on the Mac and are thus not defined in
* <signal.h>. They are defined here so that Tcl will compile with less