Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 2/2]: Fix clean compile on AIX 5.3
@ 2012-03-12 12:01 Chris January
  2012-03-12 16:02 ` Joel Brobecker
  0 siblings, 1 reply; 7+ messages in thread
From: Chris January @ 2012-03-12 12:01 UTC (permalink / raw)
  To: gdb-patches

AIX curses doesn't define 'clear'. It should be #define clear()
wclear(stdscr), but this is missing from the headers. It can be worked
around by using erase and clearok, or maybe there is a better way?

2012-03-12  Chris January  <chris.january@allinea.com>

        * tui-tui.win.c (tui_resize_all): Use erase and clearok instead 
        of clear.
---
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index b48bf3e..d02cd7a 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -693,7 +693,8 @@ tui_resize_all (void)
 	    cmd_split_diff++;
 	}
       /* Now adjust each window.  */
-      clear ();
+      erase ();
+      clearok (curscr, TRUE);
       refresh ();
       switch (cur_layout)
 	{



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-16 18:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 12:01 [PATCH 2/2]: Fix clean compile on AIX 5.3 Chris January
2012-03-12 16:02 ` Joel Brobecker
2012-03-12 19:50   ` Tom Tromey
2012-03-12 20:52     ` Joel Brobecker
2012-03-12 21:04       ` Tom Tromey
2012-03-16 11:25       ` Chris January
2012-03-16 18:22         ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox