From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8799 invoked by alias); 12 Mar 2012 12:01:34 -0000 Received: (qmail 8742 invoked by uid 22791); 12 Mar 2012 12:01:33 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.allinea.com (HELO mail.allinea.com) (94.125.131.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Mar 2012 12:01:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.allinea.com (Postfix) with ESMTP id 2DB4A12E215 for ; Mon, 12 Mar 2012 12:01:10 +0000 (GMT) Received: from mail.allinea.com ([127.0.0.1]) by localhost (mail.allinea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v2yg9WO9IlDi for ; Mon, 12 Mar 2012 12:01:09 +0000 (GMT) Received: from [192.168.0.6] (cpc11-sotn9-2-0-cust158.15-1.cable.virginmedia.com [81.101.103.159]) (Authenticated sender: cjanuary) by mail.allinea.com (Postfix) with ESMTPSA id CE07A12E202 for ; Mon, 12 Mar 2012 12:01:09 +0000 (GMT) Message-ID: <1331553669.2783.18.camel@gumtree> Subject: [PATCH 2/2]: Fix clean compile on AIX 5.3 From: Chris January To: gdb-patches@sourceware.org Date: Mon, 12 Mar 2012 12:01:00 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00391.txt.bz2 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 * 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) {