re PR ada/27366 (ada build fails as cygwin does not have clearenv)
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Tue, 2 May 2006 11:38:35 +0000 (11:38 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Tue, 2 May 2006 11:38:35 +0000 (11:38 +0000)
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

gcc/ChangeLog
gcc/ada/env.c

index f9213111d183bfa1771f87479ad06c492cef6bcc..2e47aa62b2834369c8aaa732064ee8611813c737 100644 (file)
@@ -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
index bdba790f4901352d5f84b6a5df030ce03cbb341c..6b6cec6f43d2520f09b5515ffa1d922a6ddd6220 100644 (file)
@@ -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 */