* emacsclient.c (main): Condition last change on WINDOWSNT (Bug#10155).

This commit is contained in:
Chong Yidong 2011-11-30 16:13:05 +08:00
parent dfdbf7af98
commit e7308292aa
2 changed files with 10 additions and 0 deletions

View file

@ -1635,6 +1635,11 @@ main (int argc, char **argv)
/* Send over our environment and current directory. */
if (!current_frame)
{
#ifndef WINDOWSNT
/* This is defined in stdlib.h on MS-Windows. It's defined in
unisted.h on some POSIX hosts, but not all (Bug#10155). */
extern char **environ;
#endif
int i;
for (i = 0; environ[i]; i++)
{