From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32241 invoked by alias); 3 Oct 2006 16:01:59 -0000 Received: (qmail 32231 invoked by uid 22791); 3 Oct 2006 16:01:58 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 03 Oct 2006 16:01:53 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GUmiN-0003gZ-NA for gdb-patches@sourceware.org; Tue, 03 Oct 2006 12:01:51 -0400 Date: Tue, 03 Oct 2006 16:01:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Build fix for expat 1.95 Message-ID: <20061003160151.GA13665@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00006.txt.bz2 RHEL3 ships with a version of expat which is almost, but not quite, good enough. And the configure script picks it up as OK. Rather than making the configure script pickier, I made GDB less picky; the only problem are some missing constants. Non-zero for success, yuck. Checked in. -- Daniel Jacobowitz CodeSourcery 2006-10-03 Daniel Jacobowitz * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default definitions. * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise. Index: memory-map.c =================================================================== RCS file: /cvs/src/src/gdb/memory-map.c,v retrieving revision 1.1 diff -u -p -r1.1 memory-map.c --- memory-map.c 21 Sep 2006 13:54:02 -0000 1.1 +++ memory-map.c 3 Oct 2006 15:53:00 -0000 @@ -49,6 +49,11 @@ parse_memory_map (const char *memory_map #include "xml-support.h" #include +#ifndef XML_STATUS_OK +# define XML_STATUS_OK 1 +# define XML_STATUS_ERROR 0 +#endif + /* Internal parsing data passed to all Expat callbacks. */ struct memory_map_parsing_data { Index: xml-support.c =================================================================== RCS file: /cvs/src/src/gdb/xml-support.c,v retrieving revision 1.1 diff -u -p -r1.1 xml-support.c --- xml-support.c 21 Sep 2006 13:54:03 -0000 1.1 +++ xml-support.c 3 Oct 2006 15:53:00 -0000 @@ -33,6 +33,11 @@ #include "gdb_string.h" +#ifndef XML_STATUS_OK +# define XML_STATUS_OK 1 +# define XML_STATUS_ERROR 0 +#endif + /* Returns the value of attribute ATTR from expat attribute list ATTRLIST. If not found, throws an exception. */