mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-23 12:09:49 +00:00
Build fixes for DJGPP.
* signals.c (rl_set_sighandler): Guard access to SIGWINCH. * wcwidth.c [__GO32__]: Include wctype.h before wchar.h.
This commit is contained in:
parent
ae38509c56
commit
230335c43a
@ -1,3 +1,10 @@
|
||||
2008-08-10 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
Build fixes for DJGPP.
|
||||
|
||||
* signals.c (rl_set_sighandler): Guard access to SIGWINCH.
|
||||
* wcwidth.c [__GO32__]: Include wctype.h before wchar.h.
|
||||
|
||||
2008-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
PR gdb/544
|
||||
|
@ -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);
|
||||
|
@ -6,6 +6,11 @@
|
||||
* Markus Kuhn -- 2001-09-08 -- public domain
|
||||
*/
|
||||
|
||||
#ifdef __GO32__
|
||||
/* DJGPP needs to include this before including wchar.h. */
|
||||
# include <wctype.h>
|
||||
#endif
|
||||
|
||||
#include <wchar.h>
|
||||
|
||||
struct interval {
|
||||
|
Loading…
Reference in New Issue
Block a user