diff options
author | Tero Koskinen <tero.koskinen@iki.fi> | 2008-01-03 11:35:04 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@gcc.gnu.org> | 2008-01-03 09:35:04 +0000 |
commit | e0658eda3cfe217aa1cf8548642ef99490ef0b27 (patch) | |
tree | ea49403f80c5d0fc80e878e9940c64c8c3c9d476 /gcc/ada/env.c | |
parent | 2092ee7d08be8897d85309fbffc395602e67a3fd (diff) | |
download | gcc-e0658eda3cfe217aa1cf8548642ef99490ef0b27.zip gcc-e0658eda3cfe217aa1cf8548642ef99490ef0b27.tar.gz gcc-e0658eda3cfe217aa1cf8548642ef99490ef0b27.tar.bz2 |
re PR ada/34647 (Ada runtime includes unsafe calls to mktemp and tmpname on OpenBSD)
2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
gcc/ada/
PR ada/34647
* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
on OpenBSD as is done on other BSD systems.
PR ada/34645
* sysdep.c (__gnat_ttyname, getc_immediate_nowait,
getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
I/O.
PR ada/34644
* env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
clearenv().
PR ada/34646
* init.c (__gnat_error_handler, __gnat_install_handler,
__gnat_init_float): Define for OpenBSD.
* initialize.c (__gnat_initialize): Define for OpenBSD.
From-SVN: r131301
Diffstat (limited to 'gcc/ada/env.c')
-rw-r--r-- | gcc/ada/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c index 6cbb705..46bfe1b0c 100644 --- a/gcc/ada/env.c +++ b/gcc/ada/env.c @@ -290,7 +290,7 @@ void __gnat_clearenv (void) { } #elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \ || (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) \ - || defined (__NetBSD__) + || defined (__NetBSD__) || defined (__OpenBSD__) /* 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 */ |