aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 321edbe15e5..ca03da1608a 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -47,6 +47,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
47 47
48#include "systty.h" 48#include "systty.h"
49#include "syssignal.h" 49#include "syssignal.h"
50#include "process.h"
50 51
51#ifndef O_RDWR 52#ifndef O_RDWR
52#define O_RDWR 2 53#define O_RDWR 2
@@ -169,7 +170,7 @@ init_cmdargs (argc, argv, skip_args)
169 { 170 {
170 Lisp_Object found; 171 Lisp_Object found;
171 int yes = openp (Vexec_path, Vinvocation_name, 172 int yes = openp (Vexec_path, Vinvocation_name,
172 "", &found, 1); 173 EXEC_SUFFIXES, &found, 1);
173 if (yes) 174 if (yes)
174 Vinvocation_directory = Ffile_name_directory (found); 175 Vinvocation_directory = Ffile_name_directory (found);
175 } 176 }