Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Build fix for expat 1.95
@ 2006-10-03 16:01 Daniel Jacobowitz
  2006-10-03 22:01 ` Mark Kettenis
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-10-03 16:01 UTC (permalink / raw)
  To: gdb-patches

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.  */
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-05 20:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-03 16:01 Build fix for expat 1.95 Daniel Jacobowitz
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox