19 lines
592 B
Diff
19 lines
592 B
Diff
|
From: Andreas Schwab
|
||
|
|
||
|
Index: src/emacs.c
|
||
|
===================================================================
|
||
|
--- src/emacs.c.orig
|
||
|
+++ src/emacs.c
|
||
|
@@ -860,7 +860,11 @@ load_pdump (int argc, char **argv)
|
||
|
/* Look for "emacs.pdmp" in PATH_EXEC. We hardcode "emacs" in
|
||
|
"emacs.pdmp" so that the Emacs binary still works if the user
|
||
|
copies and renames it. */
|
||
|
+#ifdef PDMP_BASE
|
||
|
+ const char *argv0_base = PDMP_BASE;
|
||
|
+#else
|
||
|
const char *argv0_base = "emacs";
|
||
|
+#endif
|
||
|
ptrdiff_t needed = (strlen (path_exec)
|
||
|
+ 1
|
||
|
+ strlen (argv0_base)
|