Date: Wed, 6 Dec 2017 17:52:01 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326626 - head/lib/libproc Message-ID: <201712061752.vB6Hq1LZ031860@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Dec 6 17:52:01 2017 New Revision: 326626 URL: https://svnweb.freebsd.org/changeset/base/326626 Log: Use a global extern declaration to appease gcc. Reported by: gjb X-MFC with: r326498 Modified: head/lib/libproc/proc_create.c Modified: head/lib/libproc/proc_create.c ============================================================================== --- head/lib/libproc/proc_create.c Wed Dec 6 17:50:10 2017 (r326625) +++ head/lib/libproc/proc_create.c Wed Dec 6 17:52:01 2017 (r326626) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712061752.vB6Hq1LZ031860>