Commit 51743df8 by Krister Walfridsson Committed by Krister Walfridsson

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
parent 1c3d0d93
2007-08-22 Krister Walfridsson <cato@df.lth.se>
* env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
NetBSD.
2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* misc.c (gnat_type_max_size): Constify. * misc.c (gnat_type_max_size): Constify.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * 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 * * 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- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -288,7 +288,8 @@ void __gnat_clearenv (void) { ...@@ -288,7 +288,8 @@ 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 (__CYGWIN__) || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) \
|| defined (__NetBSD__)
/* 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