From b69a6d228467365b4ed2545dcb1ecc3582d20e2a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 19 Aug 2012 14:00:09 -0700 Subject: Rely on to declare 'environ', as gnulib does this if the system doesn't. * lib-src/emacsclient.c (environ): Remove decl. * src/callproc.c, src/editfns.c, src/process.c (environ) [!USE_CRT_DLL]: * src/emacs.c (environ) [DOUG_LEA_MALLOC]: * src/vm-limit.c (environ) [ORDINARY_LINK]: Remove decl. * src/vm-limit.c: Include , for 'environ'. --- src/vm-limit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vm-limit.c') diff --git a/src/vm-limit.c b/src/vm-limit.c index c313a900f2c..cf697b56fdf 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c @@ -18,6 +18,7 @@ along with GNU Emacs. If not, see . */ #include #include +#include /* for 'environ', on AIX */ #include "lisp.h" #include "mem-limits.h" @@ -268,7 +269,6 @@ start_of_data (void) * is known to live at or near the start of the system crt0.c, and * we don't sweat the handful of bytes that might lose. */ - extern char **environ; return ((POINTER) &environ); #else extern int data_start; -- cgit v1.2.1