diff options
| author | Paul Eggert | 2012-08-19 14:00:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-19 14:00:09 -0700 |
| commit | b69a6d228467365b4ed2545dcb1ecc3582d20e2a (patch) | |
| tree | 012d86b0c224f8c0f6666ad5efa4977d4d6f3281 /lib-src | |
| parent | 22d7feb28c95cec0c940fc7b933491550730512b (diff) | |
| download | emacs-b69a6d228467365b4ed2545dcb1ecc3582d20e2a.tar.gz emacs-b69a6d228467365b4ed2545dcb1ecc3582d20e2a.zip | |
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 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index fe90917a70b..464b9e37359 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Rely on <unistd.h> to declare 'environ'. | ||
| 4 | * emacsclient.c (environ): Remove decl. | ||
| 5 | |||
| 1 | 2012-08-17 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-08-17 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies. | 8 | * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 20afe1cad11..07300dbf249 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1584,11 +1584,6 @@ main (int argc, char **argv) | |||
| 1584 | /* Send over our environment and current directory. */ | 1584 | /* Send over our environment and current directory. */ |
| 1585 | if (!current_frame) | 1585 | if (!current_frame) |
| 1586 | { | 1586 | { |
| 1587 | #ifndef WINDOWSNT | ||
| 1588 | /* This is defined in stdlib.h on MS-Windows. It's defined in | ||
| 1589 | unistd.h on some POSIX hosts, but not all (Bug#10155). */ | ||
| 1590 | extern char **environ; | ||
| 1591 | #endif | ||
| 1592 | int i; | 1587 | int i; |
| 1593 | for (i = 0; environ[i]; i++) | 1588 | for (i = 0; environ[i]; i++) |
| 1594 | { | 1589 | { |