summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-21 04:04:12 (GMT)
committerhobbs <hobbs>2000-04-21 04:04:12 (GMT)
commitbdf4ab31796aad0cbfc4b0f02a8e84a23229ad2d (patch)
tree11023b429351420787329586c2acb1e3756ea64f /generic/tclAlloc.c
parent4e8cc6920798eaa803c47afc4e599cb680d2b459 (diff)
downloadtcl-bdf4ab31796aad0cbfc4b0f02a8e84a23229ad2d.zip
tcl-bdf4ab31796aad0cbfc4b0f02a8e84a23229ad2d.tar.gz
tcl-bdf4ab31796aad0cbfc4b0f02a8e84a23229ad2d.tar.bz2
* generic/tclAlloc.c: wrapped caddr_t define to not be done on Unix
* unix/tclUnixPort.h: added Tclp*Alloc defines to allow the use of USE_TCLALLOC on Unix. [Bug: 4731]
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index 0b9bace..cbeadda 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclAlloc.c,v 1.8 1999/08/10 17:35:18 redman Exp $
+ * RCS: @(#) $Id: tclAlloc.c,v 1.9 2000/04/21 04:04:12 hobbs Exp $
*/
#include "tclInt.h"
@@ -29,7 +29,12 @@
# define RCHECK
#endif
+/*
+ * On Unix this will already be defined
+ */
+#if defined(WIN32) || defined(MAC_TCL)
typedef unsigned long caddr_t;
+#endif
/*
* The overhead on a block is at least 8 bytes. When free, this space