diff options
author | Krister Walfridsson <cato@df.lth.se> | 2007-08-22 18:00:54 +0200 |
---|---|---|
committer | Krister Walfridsson <kristerw@gcc.gnu.org> | 2007-08-22 16:00:54 +0000 |
commit | 51743df84409168a21a9480d979a3f87a7a44eb2 (patch) | |
tree | 7e14062937cbebbb1af448cc3cf7c563f3a88ff6 /gcc/ada/env.c | |
parent | 1c3d0d93e2b064822db68e22a09e424e9b4abe18 (diff) | |
download | gcc-51743df84409168a21a9480d979a3f87a7a44eb2.tar.gz |
env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for NetBSD.
* env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
NetBSD.
From-SVN: r127708
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r-- | gcc/ada/env.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c index cbcd1321836..808f10ba282 100644 --- a/gcc/ada/env.c +++ b/gcc/ada/env.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 2005-2006, Free Software Foundation, Inc. * + * Copyright (C) 2005-2007, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -288,7 +288,8 @@ void __gnat_clearenv (void) { index++; } #elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \ - || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) + || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) \ + || defined (__NetBSD__) /* 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 */ |