This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Build fix for expat 1.95


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]