Subject: bug#9960: Compiling Emacs trunk with MSVC

From: Eli Zaretskii <[email-masked]>
Date: Mon, 28 Nov 2011 06:51:08 -0500

> Date: Mon, 28 Nov 2011 18:18:54 +0900
> From: YAMAMOTO Mitsuharu <[email-masked]>
> Cc: Fabrice Popineau <[email-masked]>,
> 	[email-masked],
> 	[email-masked]
> 
> The above change in revno 106533 causes the following error in
> compilation on Mac OS X 10.7.  I tried autogen.sh, make distclean, and
> make bootstrap, but that didn't help.
> 
> .../lib-src/emacsclient.c: In function ‘main’:
> .../lib-src/emacsclient.c:1639: error: ‘environ’ undeclared (first use in this function)
> .../lib-src/emacsclient.c:1639: error: (Each undeclared identifier is reported only once
> .../lib-src/emacsclient.c:1639: error: for each function it appears in.)

Sorry about that.  Which system header declares `environ' on Mac OS X?
Does the problem go away if you include that header in emacsclient.c?