From: teawater <teawater@gmail.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [RFA] Fix osdata.c compile error without libexpat
Date: Tue, 02 Dec 2008 13:37:00 -0000 [thread overview]
Message-ID: <daef60380812020537l74d3c386w2006d340da36835c@mail.gmail.com> (raw)
[-- 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"
next reply other threads:[~2008-12-02 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 13:37 teawater [this message]
2008-12-02 15:32 ` Pedro Alves
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=daef60380812020537l74d3c386w2006d340da36835c@mail.gmail.com \
--to=teawater@gmail.com \
--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