Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Subject: Build fix for expat 1.95
Date: Tue, 03 Oct 2006 16:01:00 -0000	[thread overview]
Message-ID: <20061003160151.GA13665@nevyn.them.org> (raw)

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  <dan@codesourcery.com>

	* 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 <expat.h>
 
+#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.  */
 


             reply	other threads:[~2006-10-03 16:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-03 16:01 Daniel Jacobowitz [this message]
2006-10-03 22:01 ` Mark Kettenis
2006-10-03 23:45   ` Daniel Jacobowitz
2006-10-05 19:44     ` Daniel Jacobowitz
2006-10-05 20:19       ` Mark Kettenis

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=20061003160151.GA13665@nevyn.them.org \
    --to=drow@false.org \
    --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