summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-26 01:29:17 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-26 01:29:17 +0000
commite62ac8bf1c296f9192166a6fafa9291ea653377b (patch)
tree3376e83144f19c7713e062d50dc4cca7ea2d5a43
parent14d8f0e2060782b2982ce9f46548ecc5ed105b71 (diff)
downloadlibdom-e62ac8bf1c296f9192166a6fafa9291ea653377b.tar.gz
libdom-e62ac8bf1c296f9192166a6fafa9291ea653377b.tar.bz2
Work around bug in libxml headers.
svn path=/trunk/dom/; revision=6895
-rw-r--r--bindings/xml/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/xml/Makefile b/bindings/xml/Makefile
index bdebe41..16d42f3 100644
--- a/bindings/xml/Makefile
+++ b/bindings/xml/Makefile
@@ -10,6 +10,10 @@ ifeq ($(WITH_LIBXML_BINDING),yes)
else
LDFLAGS := $(LDFLAGS) -lxml2
endif
+
+ # LibXML 2.6.26 has a bug in its headers that expects _POSIX_C_SOURCE to be
+ # defined. Define it here, even though we don't need it.
+ CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE
endif
include build/makefiles/Makefile.subdir