Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix osdata.c compile error without libexpat
@ 2008-12-02 13:37 teawater
  2008-12-02 15:32 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: teawater @ 2008-12-02 13:37 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

Hi,

I got GDB-cvs build error if there is not libexpat.
I found that osdata.c file doesn't define function "osdata_parse" if
!defined(HAVE_LIBEXPAT). But in below, it is need.
So I make a patch for it.

2008-12-02  Hui Zhu  <teawater@gmail.com>

	* osdata.c (osdata_item_clear): New empty funtion just for
	compile without libexpat.

Thanks,
Hui

[-- Attachment #2: fix-osdata-without-libexpat.txt --]
[-- Type: text/plain, Size: 262 bytes --]

---
 osdata.c |    5 +++++
 1 file changed, 5 insertions(+)

--- gdb.orig/osdata.c
+++ gdb/osdata.c
@@ -43,6 +43,11 @@
   return NULL;
 }
 
+static void
+osdata_item_clear (struct osdata_item *item)
+{
+}
+
 #else /* HAVE_LIBEXPAT */
 
 #include "xml-support.h"

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

end of thread, other threads:[~2008-12-02 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-02 13:37 [RFA] Fix osdata.c compile error without libexpat teawater
2008-12-02 15:32 ` Pedro Alves

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