Subject: bug#10155: 23.3; HEAD broken by recent commit for emacsclient

From: Dan Nicolaescu <[email-masked]>
Date: Mon, 28 Nov 2011 13:44:01 -0500

Eli Zaretskii <[email-masked]> writes:

>> From: [email-masked] (Randal L. Schwartz)
>> Cc: [email-masked]
>> Date: Mon, 28 Nov 2011 10:13:47 -0800
>> 
>> Eli> Can you tell which system header declares `environ' on that
>> Eli> platform?
>> 
>> None... just
>> 
>>      extern char **environ;
>> 
>> says the manpage for environ.
>
> Then what would be the appropriate preprocessor symbol to guard such a
> declaration?  Would this do:
>
>  #if defined __APPLE__ && defined __MACH__
>  extern char **environ;
>  #endif

Can this be done in gnulib?
Better hide such ugliness in the compatibility layer...