diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-19 14:00:09 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-19 14:00:09 -0700 |
commit | b69a6d228467365b4ed2545dcb1ecc3582d20e2a (patch) | |
tree | 012d86b0c224f8c0f6666ad5efa4977d4d6f3281 /src/vm-limit.c | |
parent | 22d7feb28c95cec0c940fc7b933491550730512b (diff) | |
download | emacs-b69a6d228467365b4ed2545dcb1ecc3582d20e2a.tar.gz |
Rely on <unistd.h> 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 <unistd.h>, for 'environ'.
Diffstat (limited to 'src/vm-limit.c')
-rw-r--r-- | src/vm-limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */ #include <config.h> #include <setjmp.h> +#include <unistd.h> /* 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; |