aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-10 19:17:42 +0000
committerPedro Alves <palves@redhat.com>2008-08-10 19:17:42 +0000
commit230335c43abb50996fa8755bce454c96b10c397a (patch)
tree41cbd7d0435505988e2872011e9017d2a934a1a8 /readline
parentae38509c56c44e4729477f9af84377f9e0405b37 (diff)
downloadgdb-230335c43abb50996fa8755bce454c96b10c397a.zip
gdb-230335c43abb50996fa8755bce454c96b10c397a.tar.gz
gdb-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')
-rw-r--r--readline/ChangeLog.gdb7
-rw-r--r--readline/signals.c4
-rw-r--r--readline/support/wcwidth.c5
3 files changed, 16 insertions, 0 deletions
diff --git a/readline/ChangeLog.gdb b/readline/ChangeLog.gdb
index 1a1dfc9..be626e5 100644
--- a/readline/ChangeLog.gdb
+++ b/readline/ChangeLog.gdb
@@ -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
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);
diff --git a/readline/support/wcwidth.c b/readline/support/wcwidth.c
index ace9a3a..36433d7 100644
--- a/readline/support/wcwidth.c
+++ b/readline/support/wcwidth.c
@@ -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 {