Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Chris January <chris.january@allinea.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/2]: Fix clean compile on AIX 5.3
Date: Mon, 12 Mar 2012 12:01:00 -0000	[thread overview]
Message-ID: <1331553669.2783.18.camel@gumtree> (raw)

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)
 	{



             reply	other threads:[~2012-03-12 12:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 12:01 Chris January [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331553669.2783.18.camel@gumtree \
    --to=chris.january@allinea.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox