aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/env.c
diff options
context:
space:
mode:
authorDavid Billinghurst <David.Billinghurst@riotinto.com>2006-05-02 11:38:35 +0000
committerDavid Billinghurst <billingd@gcc.gnu.org>2006-05-02 11:38:35 +0000
commit3beef5cbb24a2e07a9e0abb227554ab3620d30c5 (patch)
treef30e319e4752129d1566d49b101d2d8ecaccfdba /gcc/ada/env.c
parent077b0dfbfe62790f11c2d173da10b80ed752f9d1 (diff)
downloadgcc-3beef5cbb24a2e07a9e0abb227554ab3620d30c5.zip
gcc-3beef5cbb24a2e07a9e0abb227554ab3620d30c5.tar.gz
gcc-3beef5cbb24a2e07a9e0abb227554ab3620d30c5.tar.bz2
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
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r--gcc/ada/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c
index bdba790..6b6cec6 100644
--- a/gcc/ada/env.c
+++ b/gcc/ada/env.c
@@ -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 */