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
This commit is contained in:
parent
077b0dfbfe
commit
3beef5cbb2
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
PR middle-end/27337
|
||||
|
|
|
@ -288,7 +288,7 @@ void __gnat_clearenv (void) {
|
|||
index++;
|
||||
}
|
||||
#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
|
||||
environment but there is a "clean" way to unset a variable. So go
|
||||
through the environ table and call __gnat_unsetenv on all entries */
|
||||
|
|
Loading…
Add table
Reference in a new issue