summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 10:08:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 10:08:46 (GMT)
commit06ea55d820a91810fe57afda632449d0bca2fe52 (patch)
tree29752caf6952d7ef54869ca9af7839bbf4755366 /unix
parenteb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f (diff)
downloadtcl-06ea55d820a91810fe57afda632449d0bca2fe52.zip
tcl-06ea55d820a91810fe57afda632449d0bca2fe52.tar.gz
tcl-06ea55d820a91810fe57afda632449d0bca2fe52.tar.bz2
Simplify implementation on Cygwin: No need to use CFG_RUNTIME_BINDIR any more
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile.in1
-rw-r--r--unix/tclUnixFile.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 15d80cb..f885f5a 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -1523,7 +1523,6 @@ tclZipfs.o: $(GENERIC_DIR)/tclZipfs.c
$(CC) -c $(CC_SWITCHES) \
-DCFG_RUNTIME_DLLFILE="\"$(TCL_LIB_FILE)\"" \
-DCFG_RUNTIME_LIBDIR="\"$(libdir)\"" \
- -DCFG_RUNTIME_BINDIR="\"$(bindir)\"" \
-I$(ZLIB_DIR) -I$(ZLIB_DIR)/contrib/minizip \
$(GENERIC_DIR)/tclZipfs.c
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 203a118..d72913b 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -45,7 +45,7 @@ TclpFindExecutable(
char name[PATH_MAX * 3 + 1];
GetModuleFileNameW(NULL, buf, PATH_MAX);
- cygwin_conv_path(3, buf, name, PATH_MAX);
+ cygwin_conv_path(3, buf, name, sizeof(name));
length = strlen(name);
if ((length > 4) && !strcasecmp(name + length - 4, ".exe")) {
/* Strip '.exe' part. */