summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-04-26 13:21:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-04-26 13:21:01 (GMT)
commitf9c3c819472813905c28f23456d1e94d8a167aa1 (patch)
tree897a061de2a0929352d6bfb55249e17ab08ba7f3 /unix/tclUnixFile.c
parent7c581d9f012e8608db1a31726831bcc723a550a2 (diff)
downloadtcl-f9c3c819472813905c28f23456d1e94d8a167aa1.zip
tcl-f9c3c819472813905c28f23456d1e94d8a167aa1.tar.gz
tcl-f9c3c819472813905c28f23456d1e94d8a167aa1.tar.bz2
Repair more build breakage.
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index c187e0e..b4a1012 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -43,13 +43,6 @@ TclpFindExecutable(
int length;
char buf[PATH_MAX * TCL_UTF_MAX + 1];
char name[PATH_MAX * TCL_UTF_MAX + 1];
-#else
- const char *name, *p;
- Tcl_StatBuf statBuf;
- Tcl_DString buffer, nameString, cwd, utfName;
-#endif
-
-#ifdef __CYGWIN__
/* Make some symbols available without including <windows.h> */
# define CP_UTF8 65001
@@ -69,6 +62,11 @@ TclpFindExecutable(
TclSetObjNameOfExecutable(
Tcl_NewStringObj(name, length), Tcl_GetEncoding(NULL, NULL));
#else
+ const char *name, *p;
+ Tcl_StatBuf statBuf;
+ Tcl_DString buffer, nameString, cwd, utfName;
+ Tcl_Encoding encoding;
+
if (argv0 == NULL) {
return;
}