summaryrefslogtreecommitdiff
path: root/libc/unistd/execl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/execl.c')
-rw-r--r--libc/unistd/execl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/unistd/execl.c b/libc/unistd/execl.c
index 531c2ee60..a05867ef8 100644
--- a/libc/unistd/execl.c
+++ b/libc/unistd/execl.c
@@ -3,8 +3,6 @@
#include <unistd.h>
#include <stdarg.h>
-extern char **environ;
-
int execl(__const char *path, __const char *arg, ...)
{
const char *shortargv[16];
@@ -42,7 +40,7 @@ int execl(__const char *path, __const char *arg, ...)
va_end(args);
- i = execve(path, (char *const *) argv, environ);
+ i = execve(path, (char *const *) argv, __environ);
if (argv != shortargv)
free(argv);