> On 08 Jan 2015, at 13:49, Iain Sandoe <i...@codesourcery.com> wrote:
> 
> Hi Tristan,
> 
> On 7 Jan 2015, at 10:15, Arnaud Charlet wrote:
> 
>> Use _NSGetEnviron to get environment.
>> 
>> Tested on x86_64-pc-linux-gnu, committed on trunk
>> 
>> 2015-01-07  Tristan Gingold  <ging...@adacore.com>
>> 
>>      PR ada/64349
>>      * env.c (__gnat_environ): Adjust for darwin9/darwin10.
>> 
>> <difs.txt>
> 
> So my original patch assumed that, while it was not legal to use environ from 
> a shlib, it is legal to use _NSGetEnviron () from an application ...
> 
> .. and, OK fine, I see the point about ! defined (__arm__) .. but a few other 
> comments.
> 
> ISTM that there's a partial implementation to distinguish between IN_RTS and 
> application?

Yes you're right.  The added code should have been added after the #endif for 
IN_RTS.

I will fix that.  Current code should compile, possibly with warnings.

Tristan.

Reply via email to