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:
Pedro Alves
2008-08-10 19:17:42 +00:00
parent ae38509c56
commit 230335c43a
3 changed files with 16 additions and 0 deletions

View File

@@ -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);