diff options
author | Pedro Alves <pedro@codesourcery.com> | 2008-08-10 19:17:41 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2008-08-10 19:17:41 +0000 |
commit | 7735530b59dfd7ee9a1cfce92572d46a8ae8aca9 (patch) | |
tree | bbd5068103e4ec83eee0cc97378b316203cd2ac9 /readline/signals.c | |
parent | d655134cbba560d43edcf048ee7434c6d73cc928 (diff) | |
download | gdb-7735530b59dfd7ee9a1cfce92572d46a8ae8aca9.tar.gz |
Build fixes for DJGPP.
* signals.c (rl_set_sighandler): Guard access to SIGWINCH.
* wcwidth.c [__GO32__]: Include wctype.h before wchar.h.
Diffstat (limited to 'readline/signals.c')
-rw-r--r-- | readline/signals.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/readline/signals.c b/readline/signals.c index f344ed83497..2dca03f35b5 100644 --- a/readline/signals.c +++ b/readline/signals.c @@ -251,7 +251,11 @@ rl_set_sighandler (sig, handler, ohandler) struct sigaction act; act.sa_handler = handler; +#if defined (SIGWINCH) act.sa_flags = (sig == SIGWINCH) ? SA_RESTART : 0; +#else + act.sa_flags = 0; +#endif sigemptyset (&act.sa_mask); sigemptyset (&ohandler->sa_mask); sigaction (sig, &act, &old_handler); |