summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2019-06-27 13:43:27 -0400
committerKen Brown <kbrown@cornell.edu>2019-06-27 13:43:27 -0400
commite51f328465759b8da9031c6fc30d3fd14f1a0c38 (patch)
tree6debe7428fabb22b767c0e24927f7b3d58c02dbd
parentc1234ca9c3703cd8bae3912f3e0a1948bae3aed1 (diff)
downloademacs-e51f328465759b8da9031c6fc30d3fd14f1a0c38.tar.gz
Fix invoking Emacs via a symlink on Cygwin
* src/emacs.c (load_pdump) [CYGWIN]: Strip ".exe" suffix.
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index d5eccf78d80..32bb57e2725 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -813,7 +813,7 @@ load_pdump (int argc, char **argv)
char *exename = NULL;
char *real_exename = NULL;
const char* strip_suffix =
-#ifdef DOS_NT
+#if defined DOS_NT || defined CYGWIN
".exe"
#else
NULL