Commit 3beef5cb by David Billinghurst Committed by David Billinghurst

re PR ada/27366 (ada build fails as cygwin does not have clearenv)

2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
 
         PR ada/27366
         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear
	 environment on Cygwin.

From-SVN: r113457
parent 077b0dfb
2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
PR ada/27366
* ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
on Cygwin.
2006-05-02 Jakub Jelinek <jakub@redhat.com> 2006-05-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/27337 PR middle-end/27337
......
...@@ -288,7 +288,7 @@ void __gnat_clearenv (void) { ...@@ -288,7 +288,7 @@ void __gnat_clearenv (void) {
index++; index++;
} }
#elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \ #elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \
|| (defined (__vxworks) && defined (__RTP__)) || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__)
/* On Windows, FreeBSD and MacOS there is no function to clean all the /* On Windows, FreeBSD and MacOS there is no function to clean all the
environment but there is a "clean" way to unset a variable. So go environment but there is a "clean" way to unset a variable. So go
through the environ table and call __gnat_unsetenv on all entries */ through the environ table and call __gnat_unsetenv on all entries */
......
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