diff options
author | Andris Pavenis <andris.pavenis@iki.fi> | 2016-10-11 21:12:52 +0300 |
---|---|---|
committer | Andris Pavenis <andris@gcc.gnu.org> | 2016-10-11 21:12:52 +0300 |
commit | 4f100fd7dbccf6d55fc0821038b97f54ff97524f (patch) | |
tree | 2cb06a0014c552f6834280a5627431cb6c2877ca /gcc/ada/ctrl_c.c | |
parent | a32fc2165b93b4ff31fb35d17afd6701de35721e (diff) | |
download | gcc-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/ctrl_c.c')
-rw-r--r-- | gcc/ada/ctrl_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/ctrl_c.c b/gcc/ada/ctrl_c.c index 7f8d177..b1bd085 100644 --- a/gcc/ada/ctrl_c.c +++ b/gcc/ada/ctrl_c.c @@ -92,8 +92,8 @@ __gnat_install_int_handler (void (*proc) (void)) if (sigint_intercepted == 0) { act.sa_handler = __gnat_int_handler; -#if defined (__Lynx__) || defined (VMS) - /* LynxOS and VMS do not support SA_RESTART. */ +#if defined (__Lynx__) || defined (VMS) || defined(__DJGPP__) + /* LynxOS, VMS and DJGPP do not support SA_RESTART. */ act.sa_flags = 0; #else act.sa_flags = SA_RESTART; |