1 --- exec.c.orig 2010-07-06 16:02:22.000000000 -0700
2 +++ exec.c 2010-07-06 16:31:46.000000000 -0700
3 @@ -48,7 +48,11 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/exe
4 #include "un-namespace.h"
5 #include "libc_private.h"
7 -extern char **environ;
8 +#include <crt_externs.h>
9 +#define environ (*_NSGetEnviron())
12 +_execvpe(const char *name, char * const argv[], char * const envp[]);
15 execl(const char *name, const char *arg, ...)
16 @@ -259,8 +263,9 @@ retry: (void)_execve(bp, argv, envp);
23 + /* else use existing errno from _execve */
27 @@ -271,7 +276,7 @@ execvP(const char *name, const char *pat
28 return execvPe(name, path, argv, environ);
32 +__private_extern__ int
33 _execvpe(const char *name, char * const argv[], char * const envp[])