From 05e2166b889c2eaff5b479b4f1d39bcb57daed2f Mon Sep 17 00:00:00 2001 From: markj Date: Wed, 6 Dec 2017 17:52:01 +0000 Subject: [PATCH] Use a global extern declaration to appease gcc. Reported by: gjb X-MFC with: r326498 --- lib/libproc/proc_create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libproc/proc_create.c b/lib/libproc/proc_create.c index 72e3a087b774..4c24988f630e 100644 --- a/lib/libproc/proc_create.c +++ b/lib/libproc/proc_create.c @@ -47,6 +47,8 @@ __FBSDID("$FreeBSD$"); #include "_libproc.h" +extern char * const *environ; + static int getelfclass(int); static int proc_init(pid_t, int, int, struct proc_handle **); @@ -179,7 +181,6 @@ int proc_create(const char *file, char * const *argv, char * const *envp, proc_child_func *pcf, void *child_arg, struct proc_handle **pphdl) { - extern char * const *environ; struct proc_handle *phdl; int error, status; pid_t pid;