diff options
Diffstat (limited to 'lib-src/emacsclient.c')
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 56e17c100be..0ae1f0bddea 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1635,7 +1635,11 @@ main (int argc, char **argv) | |||
| 1635 | /* Send over our environment and current directory. */ | 1635 | /* Send over our environment and current directory. */ |
| 1636 | if (!current_frame) | 1636 | if (!current_frame) |
| 1637 | { | 1637 | { |
| 1638 | #ifndef WINDOWSNT | ||
| 1639 | /* This is defined in stdlib.h on MS-Windows. It's defined in | ||
| 1640 | unistd.h on some POSIX hosts, but not all (Bug#10155). */ | ||
| 1638 | extern char **environ; | 1641 | extern char **environ; |
| 1642 | #endif | ||
| 1639 | int i; | 1643 | int i; |
| 1640 | for (i = 0; environ[i]; i++) | 1644 | for (i = 0; environ[i]; i++) |
| 1641 | { | 1645 | { |