diff options
author | dgp <dgp@users.sourceforge.net> | 2012-04-26 13:21:01 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-04-26 13:21:01 (GMT) |
commit | 9237d075a9ed52e64993a5fc0e8e3b64d857c5c8 (patch) | |
tree | 897a061de2a0929352d6bfb55249e17ab08ba7f3 /unix/tclUnixFile.c | |
parent | aa0788a63fa3b4766cf8103459ec4e5358cfd251 (diff) | |
download | tcl-9237d075a9ed52e64993a5fc0e8e3b64d857c5c8.zip tcl-9237d075a9ed52e64993a5fc0e8e3b64d857c5c8.tar.gz tcl-9237d075a9ed52e64993a5fc0e8e3b64d857c5c8.tar.bz2 |
Repair more build breakage.
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 12 |
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; } |