aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/env.c
diff options
context:
space:
mode:
authorAndris Pavenis <andris.pavenis@iki.fi>2016-10-11 21:12:52 +0300
committerAndris Pavenis <andris@gcc.gnu.org>2016-10-11 21:12:52 +0300
commit4f100fd7dbccf6d55fc0821038b97f54ff97524f (patch)
tree2cb06a0014c552f6834280a5627431cb6c2877ca /gcc/ada/env.c
parenta32fc2165b93b4ff31fb35d17afd6701de35721e (diff)
downloadgcc-4f100fd7dbccf6d55fc0821038b97f54ff97524f.zip
gcc-4f100fd7dbccf6d55fc0821038b97f54ff97524f.tar.gz
gcc-4f100fd7dbccf6d55fc0821038b97f54ff97524f.tar.bz2
ctrl_c.c: Do not use macro SA_RESTART for DJGPP.
2016-10-11 Andris Pavenis <andris.pavenis@iki.fi> * ctrl_c.c: Do not use macro SA_RESTART for DJGPP. * gsocket.h: Do not support sockets for DJGPP. * init.c (__gnat_install_handler): Implememt for DJGPP * sysdep.c: Include <io.h> for DJGPP (_setmode): Define to setmode for DJGPP (__gnat_set_mode): Add implementation for DJGPP (__gnat_localtime_tzoff): Use localtime_r for DJGPP * terminals.c: Add DJGPP to list of unsupported platforms. * env.c (__gnat_clearenv): use _gnat_unsetenv on all entries for DJGPP From-SVN: r240997
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 8469876..da6b7b0 100644
--- a/gcc/ada/env.c
+++ b/gcc/ada/env.c
@@ -302,7 +302,7 @@ void __gnat_clearenv (void)
#elif defined (__MINGW32__) || defined (__FreeBSD__) || defined (__APPLE__) \
|| (defined (__vxworks) && defined (__RTP__)) || defined (__CYGWIN__) \
|| defined (__NetBSD__) || defined (__OpenBSD__) || defined (__rtems__) \
- || defined (__DragonFly__)
+ || defined (__DragonFly__) || defined (__DJGPP__)
/* 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 */