Commit aebab21a by Tristan Gingold Committed by Arnaud Charlet

re PR ada/64349 (Bootstrapping Ada fails on darwin(9|10).)

2015-02-05  Tristan Gingold  <gingold@adacore.com>

	PR ada/64349
	* env.c: Fix thinko: handle Darwin case before default one.

From-SVN: r220437
parent cc6a430f
2015-02-05 Tristan Gingold <gingold@adacore.com>
PR ada/64349da/64349
* env.c: Fix thinko: handle Darwin case before default one.
2015-01-30 Robert Dewar <dewar@adacore.com>
* a-assert.adb: Minor reformatting.
......
......@@ -214,11 +214,11 @@ __gnat_environ (void)
#elif defined (sun)
extern char **_environ;
return _environ;
#elif defined (__APPLE__) && !defined (__arm__)
return *_NSGetEnviron ();
#elif ! (defined (__vxworks))
extern char **environ;
return environ;
#elif defined (__APPLE__) && !defined (__arm__)
return *_NSGetEnviron ();
#else
return environ;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment