diff options
author | Pedro Alves <palves@redhat.com> | 2008-08-10 19:17:42 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-08-10 19:17:42 +0000 |
commit | 230335c43abb50996fa8755bce454c96b10c397a (patch) | |
tree | 41cbd7d0435505988e2872011e9017d2a934a1a8 /readline/signals.c | |
parent | ae38509c56c44e4729477f9af84377f9e0405b37 (diff) | |
download | binutils-230335c43abb50996fa8755bce454c96b10c397a.zip binutils-230335c43abb50996fa8755bce454c96b10c397a.tar.gz binutils-230335c43abb50996fa8755bce454c96b10c397a.tar.bz2 |
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 f344ed8..2dca03f 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); |