From 0f2f6b6d0073d6941e4264e856478d43a3bd4820 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 4 Sep 2011 00:20:00 +0200 Subject: [PATCH] * Require libxml/parser.h to avoid compilation warning. --- src/ChangeLog | 2 ++ src/emacs.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index de12d8f0314..6113c2362ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-09-03 Lars Magne Ingebrigtsen + * Require libxml/parser.h to avoid compilation warning. + * emacs.c (shut_down_emacs): Call xmlCleanupParser on shutdown. * xml.c (parse_region): Don't call xmlCleanupParser after parsing, diff --git a/src/emacs.c b/src/emacs.c index f68c47ffed0..4cc476290c0 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -82,6 +82,10 @@ along with GNU Emacs. If not, see . */ #include #endif +#ifdef HAVE_LIBXML2 +#include +#endif + #ifndef O_RDWR #define O_RDWR 2 #endif -- 2.39.2