summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXInit.c')
-rw-r--r--macosx/tkMacOSXInit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index a1ee640..d0f5a5a 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -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: tkMacOSXInit.c,v 1.3.2.12 2005/12/08 07:50:30 das Exp $
+ * RCS: @(#) $Id: tkMacOSXInit.c,v 1.3.2.13 2006/01/10 05:38:20 das Exp $
*/
#include "tkInt.h"
@@ -170,12 +170,13 @@ TkpInit(interp)
if (rsrc) {
ReleaseResource(rsrc);
} else {
+#ifndef __LP64__
const struct mach_header *image;
char *data = NULL;
uint32_t size;
int fd = -1;
char fileName[L_tmpnam + 15];
- int i, n;
+ uint32_t i, n;
/* Get resource data from __tk_rsrc section of tk library file */
n = _dyld_image_count();
@@ -216,6 +217,7 @@ TkpInit(interp)
unlink(fileName);
close(fd);
}
+#endif /* __LP64__ */
}
}