From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31486 invoked by alias); 3 Jan 2007 20:31:21 -0000 Received: (qmail 31477 invoked by uid 22791); 3 Jan 2007 20:31:20 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Jan 2007 20:31:14 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l03KVCYJ024030 for ; Wed, 3 Jan 2007 15:31:12 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l03KV6jr025411 for ; Wed, 3 Jan 2007 15:31:06 -0500 Received: from [127.0.0.1] (vpn-14-238.rdu.redhat.com [10.11.14.238]) by potter.sfbay.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l03KV3AP025640 for ; Wed, 3 Jan 2007 15:31:05 -0500 Message-ID: <459C1289.1030505@redhat.com> Date: Wed, 03 Jan 2007 20:31:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: sid@sources.redhat.com Subject: [patch][rfa] typedef of 'bool' in /usr/include/curses.h on Solaris Content-Type: multipart/mixed; boundary="------------060702090902000007030906" X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00000.txt.bz2 This is a multi-part message in MIME format. --------------060702090902000007030906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 176 Hi, /usr/include/curses.h on some Solaris platforms defines a typedef of 'bool', even for C++ compiles unless the macro _BOOL is defined. Is this patch OK to commit? Dave --------------060702090902000007030906 Content-Type: text/plain; name="lcd.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lcd.ChangeLog" Content-length: 104 2006-12-07 Dave Brolley * lcd-char-display.cxx (_BOOL): New macro definition. --------------060702090902000007030906 Content-Type: text/plain; name="lcd.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lcd.patch.txt" Content-length: 684 Index: sid/component/lcd/lcd-char-display.cxx =================================================================== RCS file: /cvs/src/src/sid/component/lcd/lcd-char-display.cxx,v retrieving revision 1.7 diff -c -p -r1.7 lcd-char-display.cxx *** sid/component/lcd/lcd-char-display.cxx 1 Mar 2006 21:07:00 -0000 1.7 --- sid/component/lcd/lcd-char-display.cxx 3 Jan 2007 20:28:03 -0000 *************** *** 15,20 **** --- 15,23 ---- #include #ifdef HAVE__USR_INCLUDE_CURSES_H + // The following macro definition prevents curses.h from providing a typedef + // for bool on Solaris. + #define _BOOL 1 #include "/usr/include/curses.h" #else #ifdef HAVE_CURSES_H --------------060702090902000007030906--