about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/unistd.h1
-rw-r--r--src/process/execvp.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index bf10a6d1..a906552d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -177,6 +177,7 @@ void endusershell(void);
 char *getusershell(void);
 int acct(const char *);
 long syscall(long, ...);
+int execvpe(const char *, char *const [], char *const []);
 #endif
 
 #ifdef _GNU_SOURCE
diff --git a/src/process/execvp.c b/src/process/execvp.c
index 0a33e42d..7d322003 100644
--- a/src/process/execvp.c
+++ b/src/process/execvp.c
@@ -3,6 +3,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <limits.h>
+#include "libc.h"
 
 extern char **__environ;
 
@@ -47,3 +48,5 @@ int execvp(const char *file, char *const argv[])
 {
 	return __execvpe(file, argv, __environ);
 }
+
+weak_alias(__execvpe, execvpe);